Displaying Errors

    If you need more control you can use hasErrors and :

    Highlighting Errors

    This code checks if the field of the user bean has any errors and if so it adds an CSS class to the div, allowing you to use CSS rules to highlight the .

    Retrieving Input Values

    This code will check for an existing FieldError in the bean and if there is obtain the originally input value for the login field.