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.
Sharing the code below----------------------------
enter code here
<form:form id="form5" commandName="user" action="modify.htm">
<table>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<c:forEach items="${userList}" var="user">
<tr>
<td> <form:input path="name" value="${user.name}"/></td>
<td><form:input path="age" value="{user.age}"/></td>
</tr>
</c:forEach>
<tr><td><button type="button" onclick="modify()">Save</button></td></tr>
</table>
</form:form>