title: using <form> within <foreach> a few time
body: <p>I'm pretty new to Spring and I'm trying to use Spring MVC + JSP + JSTL.  My goal is to make JSP which containts list of Users and allow to edit each User  separately from others. So I think I should use separate <code>&lt;form&gt;</code> tag and separate <code>&lt;sumbit&gt;</code> button for every User in the list and my JSP looks like: </p>
  
  <pre><code>&lt;c:forEach items="${userList}" var="currentUser" varStatus="index"&gt;
          &lt;form:form method="post" action = "edit" commandName="userList[${index}]"&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;form:input path = "userList[${index}].login" value = "${currentUser.login}" /&gt;&lt;/td&gt;
              &lt;td&gt;&lt;form:input path = "userList[${index}].password" value = "${currentUser.password}" /&gt;&lt;/td&gt;
              &lt;td&gt;&lt;form:input path = "userList[${index}].smtpServer" value = "${currentUser.smtpServer}" /&gt;&lt;/td&gt;
              &lt;td&gt;&lt;form:input path = "userList[${index}].popServer" value = "${currentUser.popServer}" /&gt;&lt;/td&gt;
                  &lt;form:hidden path="userList[${index}].id" value=""/&gt;
              &lt;td&gt;
                  &lt;a href="delete/${user.id}"&gt;&lt;spring:message code="label.delete" /&gt;&lt;/a&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
             &lt;input type="submit" value = "edit"&gt; 
          &lt;/form:form&gt;
      &lt;/c:forEach&gt;
  </code></pre>
  
  <p>the idea is to have an opportunity to edit each user separately by pressing the button "edit". Ofcourse this code doesn't work. It gives me an exception:</p>
  
  <blockquote>
    <p>java.lang.IllegalStateException: Neither BindingResult nor plain
    target object for bean name 'userList[javax' available as request
    attribute</p>
  </blockquote>
  
  <p>I'm really totally noob at Spring and at web-programming too. I'll appreciate any help.</p>