HTML Form validation is important part while building a website having form fields.
The input fields need to validated and checked if there are null values.
The required attribute is a boolean attribute.
When present, it specifies that an input field must be filled out before submitting the form.
For spring MVC it will be like required = “required”
required should primarily be seen as a UI helper only. Data Validation should be done on server side to avoid any breach.
Ajax Validation (Back End Validation)
This was a vary a basic tutorial on how validation works.
Stay tuned for complex validation in upcoming posts.
Hope it helps!.