title: Spring MVC 3 form binding
body: <p>I have a simple HTML form:</p>
  
  <pre><code>&lt;form id="marketplaceForm" enctype="multipart/form-data" method="post"&gt;
  &lt;select name="category"&gt;
      &lt;option selected &gt;&lt;/option&gt;
      &lt;option value="Sales"&gt;Sales&lt;/option&gt;
      &lt;option value="Marketing" &gt;Marketing&lt;/option&gt;
  &lt;/select&gt;
  &lt;textarea type="text" id="marketplaceDesc" name="description" value="" class="creattbleArea"&gt;&lt;/textarea&gt;
  &lt;input type="text" id="marketplaceName" name="templateName" &gt;
  &lt;input type="file" id="marketplaceLogo" name="logo"&gt;
  &lt;input type="submit" value="Save" id="update" /&gt;
  &lt;input type="text" id="marketplacePrice" name="price"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I need to auto bind this form when I submit it. This works fine:</p>
  
  <pre><code>@RequestMapping(value = "/.....", method = RequestMethod.POST)
  public String PublishForm() {        
  </code></pre>
  
  <p>But this throws the following error:</p>
  
  <p>HTTP Status 400 - 
  The request sent by the client was syntactically incorrect</p>
  
  <pre><code>@RequestMapping(value = "/PublishApplication.htm", method = RequestMethod.POST)
  public String PublishForm(@RequestParam("templateName") String templateName,
                             @RequestParam("category") String category,
                             @RequestParam("price") String price,
                             @RequestParam("description") String description
                             ) {
  </code></pre>
  
  <p>Can any one help me?</p>
  
  <p><strong>Update:</strong> I have found that if I remove <code>enctype="multipart/form-data"</code> from the HTML form, it works. Now my question is how to make it work with <code>enctype="multipart/form-data"</code>.</p>