strutsdisplaytag

Set page using the org.displaytag.tags.el.ELTableTag


I'm using the org.displaytag.tags.el.ELTableTag tag for displaying a list of objects. Is it possible to set the page manually, e.g. to the 6th page. I want to implement a back button which doesn't return to the first page, but to the last page displayed.

Is there a way to read the current page number without accessing the automatically generated page parameter?


Solution

  • You can set it in initParameters. There's an internal "pagenumber" attribute which gets set there.