This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pagination in Struts

 
Christian Nash
Ranch Hand
Posts: 107
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

If any of you can help me with the pagination with the help of an example it would be great. Here is what i want:

When my jsp loads the first time it already has a list of 5 people(max 5 people per page).On this page i have the "previous" and "next" buttons.when i click the next button i would like to go to the database through the Action class and get the next five results.Same with the "previous" button.
I have tried to use the pagination tags but its been of no help.

Cheers,
ashwin.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are no pagination tags in standard Struts. There is a separate tag library called Struts-layout that does have some pagination features. Pagination in Struts has been discussed in many other threads in this forum. Click the search link, specify the Struts forum, and enter "pagination" and you will see a number of them. This thread is one of them.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic