title: How to pass data from <form:select> Spring MVC
body: <p>I would like to share my problem with you.</p>
  
  <p>I built on jsp page and use on my page some of <code>&lt;form:select&gt;</code> it use <code>&lt;form:select&gt;</code> to extract and render data from DB when I request the page <code>search.jsp</code> and user have to select one:</p>
  
  <pre><code>&lt;form action="result" method="get" &gt;
  
      &lt;table&gt;
  
      &lt;tr&gt;
      &lt;th&gt;Date fro DB:&lt;/th&gt;
      &lt;td&gt;&lt;form:select  path="listOfDates"&gt;
      &lt;form:option value="NONE"&gt; --SELECT--&lt;/form:option&gt;
      &lt;form:options items="${listOfDates}"&gt;&lt;/form:options&gt;
      &lt;/form:select&gt;
      &lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;
      &lt;th&gt;Name of company from DB:&lt;/th&gt;
      &lt;td&gt;&lt;form:select  path="listOfInstitutionsNames"&gt;
      &lt;form:option value="NONE"&gt; --SELECT--&lt;/form:option&gt;
      &lt;form:options items="${listOfInstitutionsNames}"&gt;&lt;/form:options&gt;
      &lt;/form:select&gt;
      &lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;
      &lt;th&gt;Type of company from DB:&lt;/th&gt;
      &lt;td&gt;
      &lt;form:select  path="listOfInstitutionsTypes"&gt;
      &lt;form:option value="NONE"&gt; --SELECT--&lt;/form:option&gt;
      &lt;form:options items="${listOfInstitutionsTypes}"&gt;&lt;/form:options&gt;
      &lt;/form:select&gt;
      &lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;
      &lt;td&gt;&lt;input type="submit" value="Извлечь"/&gt;&lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;/table&gt;
  
      &lt;/form&gt;
  </code></pre>
  
  <p>I need to pass what user select as request parameter to my controller, here is the code of controller:</p>
  
  <pre><code>@Controller
  public class HomeController{
  
  
      @Autowired
      private ControllerSupportClass controllerSupportClass; 
  
  
          @RequestMapping(value="/search", method=RequestMethod.GET)
          public String search(Model model) {
  
              List&lt;Date&gt; listOfDates = controllerSupportClass.findAllDatesForm();
              List&lt;String&gt; listOfInstitutionsNames = controllerSupportClass.findAllInstitutionsForm();
              List&lt;String&gt; listOfInstitutionsTypes = controllerSupportClass.findAllTypesForm();
              model.addAttribute("listOfInstitutionsTypes", listOfInstitutionsTypes);
              model.addAttribute("listOfInstitutionsNames", listOfInstitutionsNames);
              model.addAttribute("listOfDates", listOfDates);
  
              return "search";
  
          }
  
  
          @RequestMapping(value ="/result", method=RequestMethod.GET)
          public String SecondActionPage(@RequestParam String particularDate, 
                                         @RequestParam String nameOfInstitution, 
                                         @RequestParam String typeName,
                                         Model model) throws Exception {
  
  
                  if(particularDate !="" &amp;&amp; nameOfInstitution.trim() !="" &amp;&amp; typeName.trim()=="") {                   
                      controllerSupportClass.findWithDateAndName(nameOfInstitution, particularDate, model);                   
                  } else if(particularDate.trim() !="" &amp;&amp; nameOfInstitution.trim() =="" &amp;&amp; typeName.trim() !="") {                    
                      controllerSupportClass.findWithAddedDateAndType(typeName, particularDate, model);                   
                  } else if(particularDate.trim() !="" &amp;&amp; nameOfInstitution.trim() =="" &amp;&amp; typeName.trim() ==""){         
                      controllerSupportClass.findWithAddedDate(particularDate, model);    
                  } else if(particularDate.trim() !="" &amp;&amp; nameOfInstitution.trim() !="" &amp;&amp; typeName.trim() !="") {
                      throw new Exception("Search by choose all parameters is not exceptable");   
                  } else {    
                      throw new Exception("You didn't put any search parameters");    
                  }           
              return "search";
          }
  
  
  }
  </code></pre>
  
  <p>As you can see my <code>SecondActionPage()</code> method use <code>@RequestParam</code> annotation to get parameters from url and after validate them and pass them to another method to extract data corresponding on request parameters...  But problem is that I can't to pass them. It just show me like this <code>http://localhost:8080/controller/result?</code> and after ? nothing passing. How can I pass this all my choosen parameters from <code>serach.jsp</code> thank you.</p>