On 4/17/2004 10:05 AM, Tom K wrote:
I have pagination working with Tomcat 5 through a bean. I like the
“flexible” features that Pager Tag Library v2.0 has and would like to
implement it in my jsp. I know I have everything configured correctly
because I can get the paging to display but not more to the next or
previous page.
Does anyone have an example code I can see. I just don’t understand the
examples well enough on their web site HYPERLINK
"http://jsptags.com/tags/navigation/pager/index.jsp"http://jsptags.com/t
ags/navigation/pager/index.jsp
TIA
Tom K.
<%@ taglib prefix="pg" uri="http://jsptags.com/tags/navigation/pager" %>
<%-- rs/datasource here --%>
<c:if test="${rs.rowCount > 0}">
<pg:pager maxIndexPages="10"
maxPageItems="15"
export="pagerPageNumber=pageNumber" >
<c:forEach var="row" items="${rs.rows}" varStatus="lineInfo">
<pg:item>
<c:out value='${row.field1}'/>
</pg:item>
</c:forEach>
<pg:index>
<pg:first>
<a href="<%= pageUrl %>">first</a>
</pg:first>
<pg:prev>
<a href="<%= pageUrl %>">prev</a>
</pg:prev>
<pg:pages>
<a href="<%= pageUrl %>"><%= pageNumber %></a>
</pg:pages>
<pg:next>
<a href="<%= pageUrl %>">next</a>
</pg:next>
<pg:last>
<a href="<%= pageUrl %>">last</a>
</pg:last>
</pg:index>
</pg:pager>
</c:if>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]