It appears that it handles pagination automatically - i.e. pagesize will display 15 rows and then does a page break.
What I need to do is this:
In my app this display:table mechanism displays a series of row - each row has a link that can take them to another page - on the other page - there is a link that will bring them back to this orignal .jsp with the above code - but when they come back they want to come back to the paginated page from whence they came - so if they were on paginated page 2 when they left - they want to come back to paginated page 2 rather than page 1, which looks like the default - (to prevent them from having to re-navigate from whence they came). I would think this is a very common issue.
Many Thanks
Sarath Mohan
Ranch Hand
Joined: Mar 17, 2001
Posts: 213
posted
0
You may need to invoke the same logic when user clicks the link on the 'other' page. For this, a parameters needs to be passed when the user clicks link on the 'original' page
Sarath Mohan
Christian Nash
Ranch Hand
Joined: Jan 17, 2006
Posts: 107
posted
0
Hi all,
Could you please post the sample code for pagination using display tags.
Thanks, ashwin
- Christian
Vikrama Sanjeeva
Ranch Hand
Joined: Sep 02, 2001
Posts: 756
posted
0
Hi,
Kornfeld is talking about displayTag Lib (http://displaytag.sourceforge.net). I'm also facing this issue. As for Mohan, calling with same params does not work. It eventually takes the usre the 1st page.
Issue: We were facing the issue for display:table pagination control, when on the click of page 2, the UI of page wasn't same as in the page 1. Actually there are js,css and images are missing for next page or whenever we navigate through the page 2 to page1.
Solution: This is happening because in the jsp file we have given the path like below in our case: