Flow 6 – adding validation to the previous flow

In the previous flow, we added a form. However, we did not validate the values in the form. While we can write JavaScript to validate the form content, it is always secure to execute validation on the server. In this flow, let's add validation to the form that we created earlier on the server side using Spring MVC.

Spring MVC provides excellent integration with the Bean Validation API. JSR 303 and JSR 349 define specifications for the Bean Validation API (versions 1.0 and 1.1, respectively), and Hibernate Validator is the reference implementation.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset