jsp分页显示前端界面

<table cellpadding="0" cellspacing="0" width="750px">
	<thead>
		<tr>
			<th>用户ID</th>
			<th>用户账号</th>
			<th>用户姓名</th>
			<th>用户密码</th>
			<th>用户类型</th>
			<th>用户操作</th>
		</tr>
	</thead>
	<tbody>
	<c:if test="${empty user }">
		<tr>
			<td colspan="3">
				还没有用户
			</td>
		</tr>
	</c:if>
	<c:if test="${not empty user }">
		<c:forEach var="en" items="${user }">
			<tr>
				<td align="center">
					${en.uId }
				</td>
				<td align="center">
					${en.uNo}
				</td>
				<td align="center">
					${en.userName }
				</td>
				<td align="center">
					${en.password }
				</td>
				<td align="center">
					${en.uType }
				</td>
				<td align="center">
					<a href="user/userDelete?id=${en.uId }&currentPage=${page.currentPage}">删除</a>
					&nbsp;&nbsp;&nbsp;
					<a href="user/userUpdate?id=${en.uId }&currentPage=${page.currentPage}">修改</a>
				</td>
			</tr>
		</c:forEach>
	</c:if>
	<tr>
		<td colspan="9">
			<span>共${page.totalPage }页,${page.totalDataCount }条记录</span>
			<a href="user/userList/1">首页</a>
			<c:if test="${page.currentPage!=1}">
				<a href="user/userList/${page.currentPage-1}">上一页</a>
			</c:if>
			<c:if test="${page.currentPage==1}">
				<a href="javascript:void(0)">上一页</a>
			</c:if> 
			<c:if test="${page.currentPage!=page.totalPage}">
				<a href="user/userList/${page.currentPage+1}">下一页</a>
			</c:if>
			<span>第${page.currentPage }页</span>
			<c:if test="${page.currentPage==page.totalPage}">
				<a href="javascript:void(0)">下一页</a>
			</c:if> <a href="user/userList/${page.totalPage}">尾页</a>
		</td>
	</tr>
	</tbody>
</table>

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值