title: Spring MVC : List<E> need to pass as command object
body: <p>I need to pass List as commandObject.   </p>
  
  <p><strong>My code</strong></p>
  
  <pre><code>public class Employee 
  {       
  List&lt;Dept&gt; dlist = new ArrayList&lt;Dept&gt;();    
  public List&lt;Dept&gt; getDlist()
      {
  return dlist;
  }    
  public void setDlist(List&lt;Dept&gt; dlList)
      {
  this.dlist = dlist;
  }       
  }
  </code></pre>
  
  <p><strong>My jsp page</strong></p>
  
  <pre><code>&lt;c:forEach var="d" items="${dlist}"&gt;
  &lt;spring:bind path="dlist[0].projectId"&gt;
  &lt;input type="text" name="projectId" value='&lt;c:out value="${d.projectId}" /&gt;' /&gt;
  &lt;/spring:bind&gt;
  &lt;/c:forEach&gt;  
  </code></pre>
  
  <p>But it not passing, where i making mistake, can any suggest.</p>