This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a search page where i can select some criteria, say Name: xxx and click on search which gives multiple results. I select one of the record from search results and go to an other page. If I come back to search page, previous search results and sorting order is cleared. How can i retain my previous search results and sorting order?
Please advise me a best solution in Struts or Jsp...
When you are navigating to a different page from current search page, does it involves an action invocation.If yes,then the request object would be cleared or else if its just a page navigation it wont. It seems the Collection of results is set to request object, which clears itself when it moves to a different action.Try binding the collection to a session object instead.
Hey you need to save that parameters in session and get that url that gets created when you give some input and search results are displayed. that means you need to create same url again while coming back to the search result page again. The code can be like below. add in your action class of struts
********************************* //added by vijay jamadade for back button