title: 404 error once I click on the submit button in this spring form project
body: <p>Below are my pages, please do help.</p>
  
  <h2>home.jsp</h2>
  
  <pre><code>        &lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
  pageEncoding="ISO-8859-1"%&gt;
       &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"   "http://www.w3.org/TR/html4/loose.dtd"&gt;
         &lt;html&gt;
          &lt;head&gt;
           &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
         &lt;title&gt;Insert title here&lt;/title&gt;
          &lt;link type="text/css" rel="stylesheet" href="css/homepage.css"&gt;
           &lt;link type="text/css" rel="stylesheet" href="css/datepickerJqueryUI.css"&gt;
          &lt;script src="js/homepage.js"&gt;&lt;/script&gt;
            &lt;script src="js/jquery.js"&gt;&lt;/script&gt;
            &lt;script src="js/jquery-1.7.1.min.js"&gt;&lt;/script&gt;
           &lt;script src="js/jquery.datepicker.min.js"&gt;&lt;/script&gt;
         &lt;script&gt;
           $(function() {
                 $( "#datepickerDeparture" ).datepicker();
           });
          $(function() {
                  $( "#datepickerReturn" ).datepicker();
                })
            &lt;/script&gt; 
           &lt;/head&gt;
        &lt;body&gt;
         &lt;div class="headerBackground"&gt;
        &lt;!-- Headers for Logo and menu items --&gt;
           &lt;div class="header"&gt;
       &lt;div class="logo"&gt;&lt;a href="" target="_self"&gt;&lt;/a&gt;&lt;/div&gt;
              &lt;div class="menu"&gt;
           Menu List Items
              &lt;/div&gt;
           &lt;/div&gt;
            &lt;/div&gt;
      &lt;!-- Division for items between the logo header and footer --&gt;
            &lt;div class="body"&gt;
       &lt;!-- Division for search --&gt;
        &lt;div class="searchBox" &gt;
         &lt;form action="search" method="get" name="searchBus"&gt;
           &lt;div class="searchLeavingFrom"&gt;Leaving from : &lt;input type="text" name="from" class="txtBox"&gt;&lt;h6 id="leavingFrom" class="errorMsg"&gt;&lt;/h6&gt;&lt;/div&gt;
            &lt;div class="searchGoingTo"&gt;Going To :&lt;input type="text" name="destination" class="txtBox"&gt;&lt;h6 id="destination" class="errorMsg"&gt;&lt;/h6&gt;&lt;/div&gt;
              &lt;div class="searchDepartOn"&gt;Depart On:&lt;input type = "text"  name="departureDate" class="txtBox" id="datepickerDeparture"&gt;&lt;h6 id="departure" class="errorMsg"&gt;&lt;/h6&gt;&lt;/div&gt;
              &lt;div class="searchReturn"&gt;Return On:&lt;input type = "text"  name="returnDate" class="txtBox" id="datepickerReturn"&gt;&lt;/div&gt;
              &lt;div&gt;&lt;input type="button" name="search" value="Search Buses" class="searchBtn"                                     onClick="validateForm()"&gt;&lt;/div&gt;
                  &lt;/form&gt;
                 &lt;/div&gt;
                 &lt;/div&gt;
                 &lt;!-- Division for footer --&gt;
               &lt;div&gt;
               &lt;/div&gt;
             &lt;/body&gt;
           &lt;/html&gt;
  </code></pre>
  
  <h2>web.xml</h2>
  
  <pre><code>       &lt;web-app id="WebApp_ID" version="2.4"
         xmlns="http://java.sun.com/xml/ns/j2ee" 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
         http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"&gt;
  
           &lt;display-name&gt;TicketStore&lt;/display-name&gt;
           &lt;welcome-file-list&gt;
            &lt;welcome-file&gt;home.jsp&lt;/welcome-file&gt;
             &lt;/welcome-file-list&gt;
  
          &lt;servlet&gt;
             &lt;servlet-name&gt;TicketStore&lt;/servlet-name&gt;
             &lt;servlet-class&gt;
              org.springframework.web.servlet.DispatcherServlet
                &lt;/servlet-class&gt;
                 &lt;init-param&gt;
                      &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
                  &lt;param-value&gt;/WEB-INF/TicketStore-servlet.xml&lt;/param-value&gt;
                    &lt;/init-param&gt;
             &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
       &lt;!--- my servlet mapping if we put as .jsp it doesnt run at all i mean homepage doesnt display at all--&gt;
     &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
         &lt;servlet-name&gt;TicketStore&lt;/servlet-name&gt;
            &lt;url-pattern&gt;*.do&lt;/url-pattern&gt;
          &lt;/servlet-mapping&gt;
       &lt;/web-app&gt;
  </code></pre>
  
  <h2>TicketStore-servlet.xml</h2>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
      &lt;beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/beans 
  http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"&gt;
  
                 &lt;bean 
         class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping" /&gt;
  
       &lt;bean name="search"  id="search" class="com.ticketgoose.controller.SearchDetails"&gt;
            &lt;property name="formView" value="home" /&gt;
            &lt;property name="successView" value="searchBuses" /&gt;
  
          &lt;/bean&gt;
  
          &lt;!-- Register the Customer.properties --&gt;
  
               &lt;bean id="viewResolver"
               class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
             &lt;property name="prefix"&gt;
              &lt;value&gt;/&lt;/value&gt;
               &lt;/property&gt;
               &lt;property name="suffix"&gt;
                    &lt;value&gt;.jsp&lt;/value&gt;
               &lt;/property&gt;
             &lt;/bean&gt;
           &lt;/beans&gt;
  </code></pre>
  
  <h2>SearchDetails.java</h2>
  
  <pre><code>   package com.ticketgoose.controller;
  
     import com.ticketgoose.form.SearchForm;
     import org.springframework.stereotype.Controller;
     import org.springframework.validation.BindingResult;
     import org.springframework.web.bind.annotation.ModelAttribute;
     import org.springframework.web.bind.annotation.RequestMapping;
     import org.springframework.web.bind.annotation.RequestMethod;
     import org.springframework.web.bind.annotation.SessionAttributes;
     import org.springframework.web.servlet.ModelAndView;
  
       @Controller
       @SessionAttributes
         public class SearchDetails {
        @RequestMapping (value = "/search", method = RequestMethod.GET)
            public String addContact(@ModelAttribute("searchDetails") 
                          SearchForm searchDetails, BindingResult                             result){
  
  
        System.out.println("From:" + searchDetails.getFrom() + 
                 "  To:" + searchDetails.getDestination());
  
            return "redirect:searchBus.html";
     }
        @RequestMapping("/searchBus")
        public ModelAndView showContacts() {
            return new ModelAndView("searchDetails", "command", new SearchForm());
        }
        }
  </code></pre>
  
  <h2>searchBuses.jsp</h2>
  
  <pre><code>    &lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
      &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" http://www.w3.org/TR/html4/loose.dtd"&gt;
  
         &lt;html&gt;
         &lt;head&gt;
  
        &lt;title&gt;Success Page&lt;/title&gt;
  
        &lt;/head&gt;
  
        &lt;body&gt;
  
        User Details
  
        &lt;hr&gt;
  
                 From           : ${user.name}
                 To             : ${user.gender}
                Date of jourey: ${user.country}
                Return journey: ${user.aboutYou}
  
         &lt;/body&gt;
         &lt;/html&gt;
  </code></pre>
  
  <p>This is my form:</p>
  
  <h2>SearchForm.java</h2>
  
  <pre><code>    package com.ticketgoose.form;
  
      import java.sql.Date;
  
      public class SearchForm {
  
  String from;
  
  String destination;
  
  Date departureDate;
  
  Date returnDate;
      //getter setters
  
  public String getFrom() {
  
      return from;
  }
  
  
  public void setFrom(String from) {
  
      this.from = from;
  }
  
  
  
  public String getDestination() {
      return destination;
  }
  public void getDestination(String Destination) {
  
      this.destination = Destination;
  }
  
  public Date getDepartureDate() {
  
      return departureDate;
  }
  
  
  public void setDepartureDate(Date departureDate) {
      this.departureDate = departureDate;
  }
  
  
  public Date getReturnDate() {
  
      return returnDate;
  }
  
  
  public void setReturnDate(Date returnDate) {
  
  this.returnDate = returnDate;
  }}
  </code></pre>
  
  <p>Please help me solve this, I couldn't figure out the problem at all.</p>