title: How do I bind collection attributes to a form in Spring MVC
body: <p>I'm trying to bind one of my model objects to the fields of a form, using Spring-MVC. Everything works fine, except that one of the attributes of the model object is an unordered collection. Doing something like</p>
  
  <pre><code>    &lt;c:forEach items="${m.items}" var="i" varStatus="itemsRow"&gt;
        &lt;form:input path="items[${itemsRow.index}]"/&gt;
      &lt;/c:forEach&gt;
      &lt;form:errors path="items" /&gt;
  </code></pre>
  
  <p>would work fine for a List-type property, but for a Set throws an error when, upon submit, it tries to bind input field content to object attributes.</p>
  
  <p>Is there something in Spring that works out of the box with Sets?</p>