Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get the pagenumber when using <pager> taglib?

 
amarshi mohanty
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am using cachedrowset to fetch 16 records at a time from the resultset and display in the jsp using <pager> taglib.
Fetching of 16 record works but how to give the page number as per pager taglib.
I referred http://jsptags.com/tags/navigation/pager/pager-taglib-2.0.html# but they didnt mention how they get the pageNumber.
If its in any request scope ,then how to set that variable in java side.
Because in java side i will be getting the page no from the jsp side,to fetch the corresponding records for the page number clicked.



Thanks
Amarshi Mohanty
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Amarshi,
Please read http://faq.javaranch.com/java/CarefullyChooseOneForum

Not a beginner question. Moving to a more appropriate forum.
 
amarshi mohanty
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:Amarshi,
Please read http://faq.javaranch.com/java/CarefullyChooseOneForum

Not a beginner question. Moving to a more appropriate forum.





I also thought of this , but there isnt any specific place for this question?
There is nothing like Advanced Java where this will fit in.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic