title: Do Spring MVC controller look for ids or names?
body: <p>If I have the following HTML form:</p>
  
  <pre><code>&lt;form id="myForm" action="/myFormHandler" method="post"&gt;
      &lt;input type="hidden" id="fizz-id" name="fizz" value="3" /&gt;
      &lt;input type="hidden" id="buzz-id" name="buzz" value="6" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>(Notice no submit button). And then I have the following jQuery:</p>
  
  <pre><code>$("#someButton").click(function() {
      $("#myForm").submit();
  });
  </code></pre>
  
  <p>Then on the server-side (Spring MVC controller), do the hidden field <strong>ids</strong> or <strong>names</strong> get sent to the handler method?</p>
  
  <pre><code>@RequestMapping(value = "/myFormHandler.html", method = RequestMethod.POST)
  public ModelAndView handleMyForm(
      @RequestParam("fizz-id") String fizz,
      @RequestParam("buzz-id") String buzz) {
  
      // Should I be looking for "fizz-id" or "fizz"???
  
  }
  </code></pre>
  
  <p>Thanks in advance.</p>