aspose file tools*
The moose likes Other Open Source Projects and the fly likes Best Way to Achieve Pagination in Jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Best Way to Achieve Pagination in Jsp" Watch "Best Way to Achieve Pagination in Jsp" New topic
Author

Best Way to Achieve Pagination in Jsp

chetan raj
Ranch Hand

Joined: Jul 18, 2006
Posts: 34
Hi All,
Can you please tell me the best way to do pagination in jsp.
I am using pager tag in the jsp. But the problem i am facing
is for every page link The query is fired to the database and it
is taking long time when the set of record are in lakhs.
I am using CachedRowset for this.
Can anybody suggest or give suitable example where i can retrieve
a set of record in one hit to database. store that in session object(cache)
and when i click my page link it should fetch the record from the object
in session and not from database.
Or is there any other way this can be best achieved.
thanks in Advance
Chetan raj
[ August 20, 2008: Message edited by: chetan raj ]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9315
    
109

Chetan,
This is covered in our FAQ. See if it helps.


[My Blog] [JavaRanch Journal]
Shikhar Madhok
Ranch Hand

Joined: Dec 18, 2006
Posts: 95
The August edition of JavaRanch's Journal also has an article dedicated to this. You might be interested.

HTH
Shikhar


He who asks a question is a fool for five minutes; he who does not ask a question remains a fool forever - Chinese proverb
chetan raj
Ranch Hand

Joined: Jul 18, 2006
Posts: 34
JaiKiren Thanks for the prompt reply.
Can anybody give a link to the sample examples
on pagination will be helpful.

thanks in advance,
chetan raj
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Best Way to Achieve Pagination in Jsp
 
Similar Threads
Pagination
Pagination
pagination in jsp
Pagination
Pagination