【JSP开源代码栏目提醒】:网学会员JSP开源代码为您提供setPage.jsp参考,解决您在setPage.jsp学习中工作中的难题,参考学习。
<%@ page contentType="text/html;charset=GB2312" %>
<%@ taglib prefix="c" uri="/WEB-INF/tlds/c.tld" %>
<%@ page isELIgnored="false"%>
<font size="2" color="#000070">
<c:if test="${dataPageObject.currentPage>1}">
<a href="<%=request.getContextPath()%><c:out value="${pagePath}"/>?page=1">
首页</a>
</c:if>
<c:if test="${dataPageObject.currentPage>1}">
<a href="<%=request.getContextPath()%><c:out value="${pagePath}"/>?page=<c:out value="${dataPageObject.currentPage-1}"/>">
上一页</a>
</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>
</c:if>
<c:if test="${dataPageObject.currentPage<dataPageObject.pageCount}">
<a href="<%=request.getContextPath()%><c:out value="${pagePath}"/>?page=<c:out value="${dataPageObject.pageCount}"/>">
尾页</a>
</c:if>
共<c:out value="${dataPageObject.pageCount}"/>页
</font>