fix bug of pagination
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<%
|
||||
int current = page.getNumber() + 1;
|
||||
int begin = Math.max(1, current - paginationSize/2);
|
||||
int end = Math.min(begin + paginationSize/2 - 1, page.getTotalPages());
|
||||
int end = Math.min(begin + (paginationSize - 1), page.getTotalPages());
|
||||
|
||||
request.setAttribute("current", current);
|
||||
request.setAttribute("begin", begin);
|
||||
|
||||
Reference in New Issue
Block a user