In this tutorial we will create a simple Spring MVC Form to accept 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 <form:password> tag. [Read more…]
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 constratints 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 any.
This requires two important jar files along with other Spring related jars to be added to lib folder