title: Spring mvc <form:input> tags with some values passed from the calling controller in modelAttribute
body: <p>I am creating CRUD application in Spring MVC 3. Every thing is working fine apart from the edit page. I want my edit page to be populated with with some  tags with relevant database generated values, so I can see, edit if I want and save them. I passed list of values in modelAttribute to share with the edit.jsp. I can retrieve them values on edit.jsp, however I am unable to put those values in  tag, as it doesn't have a value attribute. Please help.</p>
  
  <pre><code>Sharing the code below----------------------------
  
      enter code here
  &lt;form:form id="form5" commandName="user" action="modify.htm"&gt;
  &lt;table&gt;
      &lt;tr&gt;
          &lt;th&gt;Name&lt;/th&gt;
          &lt;th&gt;Age&lt;/th&gt;
      &lt;/tr&gt;
      &lt;c:forEach items="${userList}" var="user"&gt;
          &lt;tr&gt;
              &lt;td&gt; &lt;form:input path="name" value="${user.name}"/&gt;&lt;/td&gt;
              &lt;td&gt;&lt;form:input path="age" value="{user.age}"/&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/c:forEach&gt;
      &lt;tr&gt;&lt;td&gt;&lt;button type="button" onclick="modify()"&gt;Save&lt;/button&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  &lt;/form:form&gt;
  </code></pre>