wood burning stoves*
The moose likes Struts and the fly likes Pagination in struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Pagination in struts2" Watch "Pagination in struts2" New topic
Author

Pagination in struts2

Vijay jai Singh
Greenhorn

Joined: Jan 07, 2009
Posts: 26
Hi,

I am working on one application. When i perform search, i am getting around 20,000 to 25,000 records. It is making my application very slow while displaying search result.

i want to implement pagination so i need to display only 10 records per page.

Is Display Tag is good in this scenario. I would like to know does display tag fetch only 10 records or it fetch all records and display only 10 records at a time. How would i mention to fetch records 1-10 or 11-20 or 21-30

Is there any other better pagination approach is available for this scenario.

Thank you for your time and reply
Vijay
ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
Hi,

Check this link

http://www.javaworld.com/javaworld/jw-07-2004/jw-0726-pagination.html

Also, Check out

1) http://displaytag.sourceforge.net
2) http://htmltable.yuriy-zubarev.com/jsp/index.jsp
3) http://jsptags.com/tags/navigation/pager/index.jsp

These are very good and functionally reach tag libraries that i have come across with pagination. Hope it helps.

Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+919909981973>
"Helping hands are better than praying lips......"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pagination in struts2