The moose likes Other Open Source Projects and the fly likes declaration of pageNumber in Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "declaration of pageNumber in "pg:pager"  that is pager taglib" Watch "declaration of pageNumber in "pg:pager"  that is pager taglib" New topic

declaration of pageNumber in "pg:pager" that is pager taglib

ranjan panda

Joined: Oct 03, 2005
Posts: 8
I am using pager tag library in my JSP for pagination. I writing the code for previous and next buttons in the following way;

<pg:prev><a href="<%=pageUrl%>">[<< Prev]</a></pg:prev>
<a href="<%= pageUrl %>"><%= pageNumber %></a>
<pg:next><a href="<%= pageUrl%>">[Next >>]</a></pg:next>

Here I want to know where to declare the "pageUrl" and "pageNumber" variables and is it necessary to export both of them in the pg:pager tag?
If anybody worked on the same them please reply.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60752

This taglib is not a standard part of JSP. I've mvoed this to the Other Open Source projects forum for you.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link: http://aspose.com/file-tools
subject: declaration of pageNumber in "pg:pager" that is pager taglib
Similar Threads
[pages tags & jsp] - How can I make TOP and BOTTOM paging work?
Paging with TagLib pg:pager
probelm in pager tab.
How to make a paging
jsp tag pagination and tiles