Saving previous page parameters js, jsp
<p>I'm currently working on one project which uses jsp, javascript, spring among others. I have a search page implemented where user can search by different criteria. (e.g. <a href="http://localhost:8080/service/timesheet/view?status=A&amp;size=100&amp;sort=startDate,asc&amp;page=0&amp;f_startDate_gte=2016-02-01&amp;f_endDate_lte=2016-02-29" rel="nofollow">http://localhost:8080/service/timesheet/view?status=A&amp;size=100&amp;sort=startDate,asc&amp;page=0&amp;f_startDate_gte=2016-02-01&amp;f_endDate_lte=2016-02-29</a>)
When I click on some entry in this page I am redictered to the new page where a single item is shown. Now I want in this page to have a button which will bring me back to the search page but with the previous configured criterias. But the thing is that I can acces to those single item pages also from other points in application. What would be the best way to do this? Does it need to be done with passing parameters from jacaScript and checking out what was the previous visited page? Thank you for your help!</p>