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.
posted 10 years ago
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.