I have a Spring Annonted Controller that is used to capture information from a form and retrieve a list of search results from a database.
Here is the definition of the method
@RequestMapping(method = RequestMethod.POST, params = {SUBMIT_BTN })
public ModelAndView processForm(@ModelAttribute(COMMAND_NAME){
}
I think I need to redirect with redirection: since I have a list of items in the collection store in the session. Cannot add this as url request parameter.
Basically, I am trying to prevent problems with the back button, which says that the page has expired. I want to implement a PRG pattern in strings.
I find it hard to carry my head turning POST into GET. Can I just redirect or do I need two methods? Thanks for any help you can provide.