Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

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

 
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
 
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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.

 
Wink, wink, nudge, nudge, say no more, it's a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!