jsp - 如何将tr中的选定数据显示到另一个jsp页面
问题描述
我想将复选框选中的表中的所有数据显示到下一个 jsp 页面,VME.jsp
但我似乎找不到方法来做到这一点。请帮我。这是我的代码:
<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>
解决方案
推荐阅读
- swift - 如何在 SwiftUI 中关闭 ResearchKit 模态视图?
- javascript - How can I avoid updating all instances of my function component with the useState hook in React.js?
- c# - Xamarin Android revert back window flags?
- c# - I need help understanding bool = false and the meaning of -1
- c++ - Why do I get the wrong address when referencing a global variable?
- php - 动态地回应 WordPress 帖子的类别信息
- javascript - 无法使用 Node.js 连接到 MySQL 数据库
- windows - 实时麦克风音频操作窗口
- python - 如何从值计数不满足条件的分类变量中删除行?
- c# - 使用哈希进行身份验证