diff --git a/examples/quickstart/src/main/webapp/WEB-INF/tags/pagination.tag b/examples/quickstart/src/main/webapp/WEB-INF/tags/pagination.tag index e6da2f1d..2e4e1262 100644 --- a/examples/quickstart/src/main/webapp/WEB-INF/tags/pagination.tag +++ b/examples/quickstart/src/main/webapp/WEB-INF/tags/pagination.tag @@ -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);