• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Retain search results

 
Jaffer Shareef
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...

Thanks in Advance

- Jaffer.
 
rahul khanna
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you display the results for the first time . .what are you using? A bean I guess.. Keep the bean in the session and it would then dispaly the results in the same order once again ..

Remember to clear the bean from the session .. once it is no longer required.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic