Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pagination in Struts

 
Christian Nash
Ranch Hand
Posts: 107
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic