title: How do I bind item from List to form modelAttribute using Spring MVC
body: <p>I have searched and couldnt find anything similar or i am serching for the wrong thing. I am returning a list of items from my Controller for display in my jsp.  In my jsp table I would like to have a row for each item in my list, something like this:</p>
  
  <pre><code>&lt;tbody&gt;
     &lt;c:forEach items="${productList}" var="product" varStatus="status"&gt;
        &lt;tr&gt;
           ???? This next line is seudo-code. I dont know how to bind the item to form ???
           &lt;form:form method="post" modelAttribute="${productList}[status.index]"&gt;  
               &lt;td&gt;&lt;form:input path="price" class="input-mini" type="text" /&gt;&lt;/td&gt;
               &lt;td&gt;&lt;button id="save" name="save"&gt;&lt;/td&gt;
           &lt;/form
        &lt;/tr&gt;
     &lt;/c:forEach&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p></p>
  
  <p>then my controller would have a RequestMethod.POST for handleing the save action.  Is this possible?  If so could someone help point me in the right direction. </p>
  
  <p>Is this possible I am not sure how to bind the item in the list to the form. </p>