Question

I'm using pagination in page1.jsp and I have links to page2.jsp. I have back button in pag2.jsp I'm in page1.jsp at pagination =2 If I click on links to page2.jsp and back to page1.jsp it showing page1.jsp with pagination=1 Can anybody help out with configuring pagination across the pages

Was it helpful?

Solution

You will have to store index of your pager in some scope, since it is outside request it should be session.

When user moves from page1 to page2, save the index of the pager.

When you are loading your page1.jsp's pager see if valid index is present in session or not, if not load the default, if yes set the pager index as per the value.

You will have to check how this can be written as per your pagination plugin, logic.

OTHER TIPS

Use the property

keepStatus="true"

Inside the display:table declaration.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top