<c:forEach var="programSlot" items="${programSlot}" varStatus="status">
<tr>
<td>
<input name ="duration" value="${programSlot.duration}" disabled />
</td>
<td>
<select name= "programName">
<c:forEach var="radioProgram" items="${rps}">
<c:choose>
<c:when test="${radioProgram.name == programSlot.programName}">
<option value="${radioProgram.name}" selected="">${radioProgram.name}</option>
</c:when>
<c:otherwise>
<option value="${radioProgram.name}">${radioProgram.name}</OPTION>
</c:otherwise>
</c:choose>
</c:forEach>
</select>
</td>
<td><input name ="startTime" value="${programSlot.startTime}" /></td>
<td> <input name ="dateOfProgram" disabled value="${programSlot.dateOfProgram}" /></td>
<td>
<input type="submit" value="Submit"/>
[In the attached image, I have shown my web form. Each row is showing attribute values of an object.
Now I want that if I change some value of a particular row and click on "submit" the values should get saved in request parameter. (So that I can fetch the same in my java file to set those values and save in db.)
I want to do this using JSTL (or any other solution is welcome)]1
I have also attached code snippet.