In this tutorial, we will create a simple Spring MVC Form to accept a password from the user with Springs <form:password> tag library. Here we will create a simple Spring MVC form with two password fields and we will add validation support to check if it is not empty and size is between 1 and 5. We will also look into the showPassword attribute of the … [Read more...]
Spring MVC Form Validation Tutorial (With Annotations)
In this tutorial, we will learn how to validate the Spring MVC application using the Bean Validation ( JSR 303 Bean Validation). We will develop a Spring MVC Form validation constraints for the FirstName, LastName, Emails fields. Once when the user submits the form the server-side validation will be applied and the corresponding Validation messages will be thrown if … [Read more...]