我有这样一个列表,所有的用户问题都会被分配。
userId issueNo issue_desc comments
amit t12334 login not happening login via test user not happening
amit t1666 session is not cleared after logout session is not cleared
yash st5436 Transaction Logs check transaction logs 如何使用JSTL实现以下功能?
amit
issueNo issue_desc comments
12334 login not happening login via test user not happening
t1666 session is not cleared after logout session is not cleared
yash
issueNo issue_desc comments
st5436 Transaction Logs check transaction logs或者有什么更好的方法来展示这个?
发布于 2017-03-07 20:38:00
1)按“用户标识”对用户列表进行排序;
2)使用下一个周期:
<table>
<thead>
<th>issueNo</th>
<th>issue_desc</th>
<th>comments</th>
</thead>
<tbody>
<c:forEach items="${users}" var="user">
<c:if test="${empty prevUser or user.userId != prevUser.userId}">
<tr>
<td colspan='3' align='left'><c:out value="${user.userId}"/></td>
</tr>
</c:if>
<tr>
<td><c:out value="${user.issueNo}"/></td>
<td><c:out value="${user.issue_desc}"/></td>
<td><c:out value="${user.comments}"/></td>
</tr>
<c:set var="prevUser" value="${user}" />
</c:forEach>
</tbody>
</table>https://stackoverflow.com/questions/42656950
复制相似问题