I am currently using ValidatorForm for my validations. Since most of the validations are available in the struts provided default validations, I am making use of the same. However, I'd like to highlight (in red) the form field which is causing the validation to fail. How do I accomplish this? From the <html:errors>, is it possible to know which field(s) has caused the error?
Use the <logic:messagesPresent> tag. If you specify a property attribute in this tag, the body will be executed only if there is an error message present for that field. Example:
[ July 09, 2007: Message edited by: Merrill Higginson ]