Skip to main content

Form Validation

Learn Form Validation (Validation, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes Form validation in Spring MVC checks submitted form data and, on errors, shows the same form again with messages. Flow : bind request params to a form object, validate it with @Valid , test BindingResult.hasErrors() . Success redirects (Post-Redirect-Get); failure returns the form view name.

More lessons in Validation