title: Spring MVC 3.X + JSTL binding data list to <form:input> fail because forEach's varStatus
body: <p>I struggle against this bug since days. I tried every methods i've found on internet but it seems that i'm the only one to have this problem.</p>
  
  <p>I've got java classes like this :</p>
  
  <pre><code>Class ListItem{
    private int id;
  }
  
  Class ListContainer{
  private List&lt;ListItem&gt; items;
  }
  </code></pre>
  
  <p>And a jsp like this :</p>
  
  <pre><code>&lt;%@ page contentType="text/html;charset=UTF-8" language="java"%&gt;
  &lt;%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%&gt;
  &lt;%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%&gt;
  &lt;%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%&gt;
  ...
  &lt;form:form method="post" action="myController" modelAttribute="listContainerModel"&gt;
           &lt;c:forEach items="${listContainerModel.items}" var="currentItem" varStatus="i"&gt;
                &lt;form:input type="text" path="items[${i.index}].id" name="id"/&gt;
           &lt;/c:forEach&gt;
  
     &lt;/form:form&gt;
  </code></pre>
  
  <p>But i've got this exception</p>
  
  <pre><code>org.springframework.beans.InvalidPropertyException: Invalid property 'items[${i.index}]' of bean class [foo.bar.ListContainer]: 
  Invalid index in property path 'items[${i.index}]'; nested exception is java.lang.NumberFormatException: For input string: "${i.index}"
  </code></pre>
  
  <p>I've tried many things such as</p>
  
  <p><a href="https://stackoverflow.com/questions/15480397/how-to-send-list-of-object-to-view-and-back-to-">How to send list of Objects to View and back to Post method in controller</a>
  post-method-in-controller</p>
  
  <p>or <a href="http://viralpatel.net/blogs/spring-mvc-multi-row-submit-java-list/" rel="nofollow noreferrer">http://viralpatel.net/blogs/spring-mvc-multi-row-submit-java-list/</a></p>
  
  <p>I suppose i've a problem mixing jstl tags + el expression + spring mvc taglibs but i can't figure out why. </p>