title: Spring mvc and iterating through a list as a form backing object
body: <pre><code>&lt;form:form id="myFRM" action="${myURL}" method="POST" modelAttribute="myPOJO"&gt;
  &lt;c:set var="i" scope="page" value="0"/&gt;
  &lt;c:forEach items="${myPOJO.myLIST}" var="myItem"&gt;
    &lt;tr class="ui-state-default" &gt;
    &lt;td&gt;&lt;form:checkbox path="myLIST[${i}].aBool" value="true"/&gt;&lt;/td&gt;
   &lt;/tr&gt;
   &lt;c:set var="i" value="${i + 1}" scope="page"/&gt;
  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>is there a better way to do this ?</p>
  
  <p>myPOJO is a class containing a list,which I have created purely for this purpose - is there a way to reference the list directly as a form backing object ?</p>