File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes How to get the pagenumber when using <pager> taglib? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "How to get the pagenumber when using <pager> taglib?" Watch "How to get the pagenumber when using <pager> taglib?" New topic
Author

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

amarshi mohanty
Ranch Hand

Joined: Jul 01, 2008
Posts: 110
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


SCJP (97%), SCWCD (95%))
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

Amarshi,
Please read http://faq.javaranch.com/java/CarefullyChooseOneForum

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

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
amarshi mohanty
Ranch Hand

Joined: Jul 01, 2008
Posts: 110
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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get the pagenumber when using <pager> taglib?