• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Pagination in struts2

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic