I often use a script like:
- List of users (when calling ajax)
On the search page, after clicking the search button with some search criteria ., I have a list of users in jQuery datatable - Click to change user
In datatable I click to edit the user from the list, I redirect to the user update form filled in the user fields for the update. - Update user
After a successful user update, we redirect to the search page with search criteria from the 1st request .
I am currently passing parameters to Search parameters , when I click to edit the user in the second request , save them as hidden fields in the updated user of the form, after the update button, click the Third request to transfer them to the controller. If successfully updated, go to the search page to find previous search criteria .
Any other idea Know the previous search criteria ?
Is using a session a good solution or should I continue my decision?
Update
Now request parameters are encapsulated in a bean .