美文网首页
2018-04-10 SSM框架PageHelper分页

2018-04-10 SSM框架PageHelper分页

作者: 辣鸡AI呀 | 来源:发表于2018-04-11 14:33 被阅读0次

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>

相关文章

网友评论

      本文标题:2018-04-10 SSM框架PageHelper分页

      本文链接:https://www.haomeiwen.com/subject/ezfnhftx.html