Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pagination in struts2

 
Vijay jai Singh
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic