This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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!