Hi
I try to incorporate paging in my web application and I find Pager Tag Library in http://jsptags.com/tags/navigation/pager/index.jsp.
Here is my code
...
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg" %>
<%-- Retrieve data--%>
<sql:query var="date_data" dataSource="${ds}">
select *
from pdate
</sql:query>
....
...
<html>
......
<pg:pager maxPageItems="2">
<pg:item>
<c:forEach items="${date_data.rows}" var="row">
<c:out value="${row.product}"/>
</c:forEach>
</pg:item>
<pg:index>
<pg:first>
<a href="<%= pageUrl %>">[ (<%= pageNumber %>) |< Previous ]</a>
</pg:first>
<pg:prev>
<a href="<%= pageUrl %>">[ (<%= pageNumber %>) << Previous ]</a>
</pg:prev>
<pg:pages>
<a href="<%= pageUrl %>"><%= pageNumber %></a>
</pg:pages>
<pg:next>
<a href="<%= pageUrl %>">[ Next >> (<%= pageNumber %>) ]</a>
</pg:next>
<pg:last>
<a href="<%= pageUrl %>">[ Last >| (<%= pageNumber %>) ]</a>
</pg:last>
</pg:index>
</pg:pager>
I don�t understand what values the pageUrl expression must have.
I change all <%= pageUrl %> with numbers and string in order to experiment but the result is just the <c:out value="${row.product}"/> and no paging.
What should be done in order to work?
Thanks