Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update page method #472

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.txt
Expand Up @@ -11,4 +11,6 @@

-------------------------------
Offical Site: http://springside.io
Document: https://github.com/springside/springside4/wiki
Document: https://github.com/springside/springside4/wiki

江南白衣 在最近大幅删减了 所以这是没有引入spring boot的版本 里边有一些 代码 很有参考意义!
Expand Up @@ -16,7 +16,7 @@ request.setAttribute("end", end);

<div class="pagination">
<ul>
<% if (page.hasPreviousPage()){%>
<% if (page.hasPrevious()){%>
<li><a href="?page=1&sortType=${sortType}&${searchParams}">&lt;&lt;</a></li>
<li><a href="?page=${current-1}&sortType=${sortType}&${searchParams}">&lt;</a></li>
<%}else{%>
Expand All @@ -35,7 +35,7 @@ request.setAttribute("end", end);
</c:choose>
</c:forEach>

<% if (page.hasNextPage()){%>
<% if (page.hasNext()){%>
<li><a href="?page=${current+1}&sortType=${sortType}&${searchParams}">&gt;</a></li>
<li><a href="?page=${page.totalPages}&sortType=${sortType}&${searchParams}">&gt;&gt;</a></li>
<%}else{%>
Expand Down