title: Post Form won't call Servlet
body: <p>So i have a post form which calls a Servlet to perform a search but the problem is that when i push the submit button it's completely unresponsive. Although when used in the same form in a different .jsp page it works as it should. If it had something to do with the servlet mapping there would be an error page from the tomcat server but i do not get such an error page. It's just completely unresponsive.</p>
  
  <p>My HTML form:</p>
  
  <pre><code>   &lt;form action="AnonSearchServlet" class="form-inline" method="post"&gt;
        &lt;input type="search" name="location" class="form-control input-lg" placeholder="Destination, City, Address" required&gt;
        &lt;div class="input-group"&gt;
          &lt;input type="search" class="form-control input-lg" placeholder="When" name="daterange" value="" required/&gt;
          &lt;div class="input-group-addon"&gt;
            &lt;span class="glyphicon glyphicon-calendar"&gt;&lt;/span&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;input style="width: 20%; height: 46px" type="number" min="1" name="accomodates" class="form-control" placeholder="Guests" required&gt;
        &lt;button type="submit" class="btn btn-danger btn-lg"&gt;Search&lt;/button&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>My Servlet:</p>
  
  <pre><code>public class AnonSearchServlet extends HttpServlet {
      protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
          String start_date;
          String end_date;
          String date_range = request.getParameter("daterange");
          UserBean user = new UserBean();
          String[] tokens = date_range.split(" ");
          start_date = tokens[0];
          end_date = tokens[2];
  
          try {
              HttpSession session = request.getSession(true);
              user.setUserID(0);
              System.out.println(user.getUserID());
  
              ResultSet search_rs = null;
              SearchBean search_bean = new SearchBean();
  
              search_bean.setUserId(user.getUserID());
              search_bean.setLocation(request.getParameter("location"));
              System.out.println(request.getParameter("location"));
              search_bean.setStreet(request.getParameter("location"));
              search_bean.setNeighbourhood(request.getParameter("location"));
              search_bean.setAccomodates(request.getParameter("accomodates"));
              search_bean.setStartDate(start_date);
              search_bean.setEndDate(end_date);
  
              search_bean = SearchDAO.search(search_bean);
              session.setAttribute("current_search", search_bean);
              response.sendRedirect("searchResults.jsp");
  
  
          } catch (Throwable thException) {
              System.out.println(thException);
          }
      }
  }
  </code></pre>
  
  <p>And my web.xml:</p>
  
  <pre><code>    &lt;servlet&gt;
          &lt;servlet-name&gt;AnonSearchServlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;Servlets.AnonSearchServlet&lt;/servlet-class&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;AnonSearchServlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/AnonSearchServlet&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  </code></pre>