• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic