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 4e3ad4eb9..85bb252d9 100644 --- a/examples/quickstart/src/main/webapp/WEB-INF/tags/pagination.tag +++ b/examples/quickstart/src/main/webapp/WEB-INF/tags/pagination.tag @@ -1,48 +1,48 @@ -<%@tag pageEncoding="UTF-8"%> -<%@ attribute name="page" type="org.springframework.data.domain.Page" required="true"%> -<%@ attribute name="paginationSize" type="java.lang.Integer" required="true"%> - -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> - -<% -int current = page.getNumber() + 1; -int begin = Math.max(1, current - paginationSize/2); -int end = Math.min(begin + (paginationSize - 1), page.getTotalPages()); - -request.setAttribute("current", current); -request.setAttribute("begin", begin); -request.setAttribute("end", end); -%> - -