title: Loop Through List of Objects in JSP and Submit One of Them
body: <p>I have a list of products, and I want to iterate through each in a JSP, and have the user choose one.  Once chosen, I want to submit that one individual product object as a model attribute, to the Spring Controller.</p>
  
  <p>Basically, I want to do something like this.  But I am getting a 400 error.  Is what I am attempting to do even possible?</p>
  
  <pre><code>        &lt;form:form method="POST" modelAttribute="listProduct"&gt;
              &lt;c:forEach items="${listProduct}" var="prd"&gt;
                  &lt;tr &gt;
                      &lt;td&gt;&lt;c:out value="${prd.Description}"/&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;c:out value="${prd.productId}"/&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;form:input type="hidden" path="prd" readonly="true"/&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;input type="submit" value="Select" /&gt;&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/c:forEach&gt;
          &lt;/form:form&gt;
  </code></pre>