I wanted to display all the data in the table which are checked by the checkbox to the next jsp page which is the VME.jsp
but I can't seem to find a way to do it. Please help me. This is my code:
<div class="container">
<form action="VME.jsp" method="post">
<table class="table table-hover table-condensed" id="myTable">
<thead>
<tr>
<th>Course</th>
<th>Section</th>
<th>Unit</th>
<th>School</th>
<th>Room</th>
<th></th>
</tr>
</thead>
<tbody>
<c:forEach var="tempEnlistment" items="${enlistment_list}">
<tr>
<td>${tempEnlistment.course}<input type="hidden" name="name"
value="${tempEnlistment.course}"/></td>
<td>${tempEnlistment.section}<input type="hidden" name="name"
value="${tempEnlistment.section}"/></td>
<td>${tempEnlistment.unit}<input type="hidden" name="name"
value="${tempEnlistment.unit}"/></td>
<td>${tempEnlistment.school}<input type="hidden" name="name"
value="${tempEnlistment.school}"/></td>
<td>${tempEnlistment.room}<input type="hidden" name="name"
value="${tempEnlistment.room}"/></td>
<td>
<input type="checkbox" name="courses" value="${enlistment_list}" />
</td>
</tr>
</c:forEach>
</tbody>
</table>
<input type="submit" class="form-control btn" style="background-color: #31382b; color:
white;" value=" SAVE " />
</form>
</div>
Aucun commentaire:
Enregistrer un commentaire