title: how to pass param from jsp to spring mvc controller
body: <p>My spring mvc controller has a method:</p>
  
  <pre><code>    @RequestMapping(value = "/search", method = RequestMethod.POST)
      public ModelAndView search(@RequestParam("cn") String cn) {
      //do stuff
      return mav;
  }
  </code></pre>
  
  <p>And I have a JSP page, where I'd like to send the value of the string cn:</p>
  
  <pre><code>&lt;html&gt;
   &lt;head&gt;&lt;title&gt;Search Entry&lt;/title&gt;&lt;/head&gt;
   &lt;body&gt;
    &lt;h3&gt;Search entry&lt;/h3&gt;
    &lt;a href="search"&gt;&lt;input type="text" name="cn" value="search"&gt;
     &lt;button type="submit"&gt;Search&lt;/button&gt;
    &lt;/a&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I'm sure the jsp has something wrong, now the status message says:</p>
  
  <p>"Request method 'GET' not supported".</p>
  
  <p>If I delete method = RequestMethod.POST it says:</p>
  
  <p>"Required String parameter 'cn' is not present; description: The request sent by the client was syntactically incorrect"</p>