I have a search form.When user post the search form i t开发者_StackOverflowake the user to the result page which has results of the search.Now if the user click on the back button of the browser ,i want that he should go to the search page form filled with his values.I am using java
Use cookies.
when the user submits, just store a json or other simple serialized string needed to configure your search form.
Then on the search form page build out, just check for the existence of the cookie, if no cookie, no value, etc.
精彩评论