1

On my MVC spring application I send a form to a page using GET method to perform a search. The results of the search is a list and, for every entry is possible to navigate to a details page. It works fine. Now, I want to have a back button on the detail page which should take back to the searched list.

I can call the same controller method to reevaluate but it performs Data Base calls, which I don't want to do. What is the best solution?

tereško
  • 58,060
  • 25
  • 98
  • 150
user1588142
  • 59
  • 2
  • 6

1 Answers1

9

You want it to perform database calls don't you ? What if the data has been changed by a differet user?

If not you can use javascript :

<input action="action" type="button" onclick="history.go(-1);" />
Community
  • 1
  • 1
NimChimpsky
  • 46,453
  • 60
  • 198
  • 311