File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Pagination in struts2

Vijay jai Singh

Joined: Jan 07, 2009
Posts: 26

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
ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403

Check this link

Also, Check out


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

Ujjwal B Soni <baroda, gujarat, india> <+918866008962>
"Helping hands are better than praying lips......"
I agree. Here's the link:
subject: Pagination in struts2
It's not a secret anymore!