Error Messages
Learn how to add validation messages for validation errors in the form.
We'll cover the following
Thymleaf has the #fields.hasErrors
method available in templates that allow us to check whether there is a validation error on a field.
Adding validation to firstName
We can apply this to the firstName
property, for example:
Get hands-on with 1400+ tech skills courses.