I have a controller that maps a Post Request.
Taking the input fields some calculations are made and then saved in two variables. I.e
String var1 and String var2.
This Controller redirects to a page using return new ModelAndView("redirect:/user")
And I have a Controller that maps Get Requests.
In this controller I will need the values var1 and var2, but I do not want to pass them in the URL, as it will be displayed and I need these values to be hidden.
Is there a way to achieve this ? To get those two variables inside the Get Controller so I can pass them as objects in the model.