In this section, you will learn how to validate a form submission in a Spring MVC application. In our project, we have the add products form already. Add some validation to this form by performing the following steps:
pom.xmlfile—you can find
pom.xmlunder the root directory of the project itself.
pom.xmlfile. Select the Dependencies tab and click on the Add button in the Dependencies section.
org.hibernate, enter Artifact Id as
hibernate-validator, enter Version as
4.3.1.Final, select Scope as compile, and click on the OK button and save
Productdomain class and add the ...