Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
ranjan panda
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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:index>
<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:index>

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.

Ranjan
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64632
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This taglib is not a standard part of JSP. I've mvoed this to the Other Open Source projects forum for you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic