It's not a secret anymore!
The moose likes Other Application Frameworks and the fly likes Displaytag pagination in Stripes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Displaytag pagination in Stripes" Watch "Displaytag pagination in Stripes" New topic

Displaytag pagination in Stripes

Gerard Kelly

Joined: Mar 22, 2009
Posts: 11

I'm trying to paginate through a List of items using displaytag and Java Stripes but it doesn't seem to work correctly. Everything is working fine but when I click the link for say the 2nd page of results, it does not paginate - ie. the first 2 results are being shown again. Can anyone help?

Here is the jsp code:

And the corresponding TenderActionBean:

The above class extends TenderBaseActionBean which holds the results set - the declaration looks like this:

When I click on pagination link, the searchByTitle (or searchByDescription) action is hit and the search is performed again - is this supposed to happen? The link works correctly (ie. it appears that the second page is being displayed as Page 2 link cannot be clicked) but like I said, the results are incorrect.

Any help with this would be great guys, thanks.
It is sorta covered in the JavaRanch Style Guide.
subject: Displaytag pagination in Stripes
jQuery in Action, 3rd edition