jstl 分页

来源:互联网 发布:c# python 编辑:程序博客网 时间:2024/06/05 10:38
c:if test="${page.currPage>1}">    <a href="${pageContext.request.contextPath}/sys/module/list?page=1">[首页]</a>    <a href="${pageContext.request.contextPath}/sys/module/list?page=${page.currPage-1}">[上一页]</a></c:if><c:forEach begin="1" end="${page.totalPage}" var="i">    <c:if test="${page.currPage==i}">        <a href="${pageContext.request.contextPath}/sys/module/list?page=${i}" style="color: red">${i}</a>    </c:if>    <c:if test="${page.currPage!=i}">        <a href="${pageContext.request.contextPath}/sys/module/list?page=${i}">${i}</a>    </c:if></c:forEach><c:if test="${page.currPage<page.totalPage}">    <a href="${pageContext.request.contextPath}/sys/module/list?page=${page.currPage+1}"> [下一页]</a>    <a href="${pageContext.request.contextPath}/sys/module/list?page=${page.totalPage}"> [尾页]</a></c:if>
0 0