2018-04-10 SSM框架PageHelper分页

SSM分页:https://blog.csdn.net/peng_hong_fu/article/details/53645924
SSM+PageHelper:http://how2j.cn/k/ssm/ssm-pagehelper/1373.html

修改jsp页面按钮显示判断,解决500超限问题

<div style="text-align:center">
    <c:if test="${page.start >= page.count}">
        <a href="?start=0">首 页</a>
        <a href="?start=${page.start-page.count}">上一页</a>
    </c:if>
    <c:if test="${page.start < page.last}">
        <a href="?start=${page.start+page.count}">下一页</a>
        <a href="?start=${page.last}">末 页</a>
    </c:if>
</div>
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容