This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
I agree. Here's the link:
subject: Displaytag pagination in Stripes
Similar Threads
[Stripes] @ManyToOne relationships: NULL id
Creating an edit action in Stripes
[Stripes] forms: display errors from @ValidateNestedProperties
One of My Favorite Stripes Features (A Complex Example)
Stripes: prepopulated forms question