fix bug of pagination

This commit is contained in:
Calvin
2012-09-19 23:11:00 +08:00
parent bb63b80c9b
commit ccc75fb5e5
@@ -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);