At the moment I am trying to get to know the correct workflow for form submission/validation/error handling in Spring MVC 3.1. No I got some questions.
- What is the correct way of preserving the form errors, bound model through a redirect (is there a built in way - I haven't found one)
- I know that I can use the Spring form tags and JSR 303 to validate (including i18n messages) submitted form values. But what is the correct way of handling errors that happen while processing the given values? (e.g. registration is not possible - email already registered) From Struts or non java Frameworks I know something like ActionErrors. What is the correct way of doing it in Spring MVC?
- What is the correct way of iterating through the form errors available via the "form:errors" tag? I just want to show a list of errors.