page.jsp

来自「JavaWeb标签应用开发(随书光盘)为方便读者阅读本书和调试程序」· JSP 代码 · 共 22 行

JSP
22
字号
<%@ page contentType="text/html;charset=GB2312" %>
<%@ taglib prefix="c" uri="/WEB-INF/tlds/c.tld" %>
<%@ page isELIgnored="false"%>
<font size="2" color="#000080">
	<c:if test="${dataPageObject.currentPage>1}">
		<a href="<%=request.getContextPath()%><c:out value="${pagePath}"/>?page=1">
		首页</a>&nbsp;
	</c:if>
	<c:if test="${dataPageObject.currentPage>1}">
		<a href="<%=request.getContextPath()%><c:out value="${pagePath}"/>?page=<c:out value="${dataPageObject.currentPage-1}"/>">
		上一页</a>&nbsp;
	</c:if>
	<c:if test="${dataPageObject.currentPage<dataPageObject.pageCount}">
		<a href="<%=request.getContextPath()%><c:out value="${pagePath}"/>?page=<c:out value="${dataPageObject.currentPage+1}"/>">
		下一页</a>&nbsp;
	</c:if>
	<c:if test="${dataPageObject.currentPage<dataPageObject.pageCount}">
		<a href="<%=request.getContextPath()%><c:out value="${pagePath}"/>?page=<c:out value="${dataPageObject.pageCount}"/>">
		尾页</a>&nbsp;
	</c:if>
		共<c:out value="${dataPageObject.pageCount}"/>页
</font>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?