From spring doc about redirecting:
All model attributes are exposed as HTTP query parameters
After redirect, how can I load ModelMap from HTTP query parameters. Can I avoid adding attributes manually ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
By the usual Spring MVC Binding, either using
@RequestParam("modelName")or by passing in a backing form to be bound by SpringrequestMappedMethod(MyBackingForm form, Model model)If you are using Spring 3.1, you can also flashmaps at the point of redirect, then you can actually retrieve it directly from the model in the redirected controller.