Antonio Petrelli wrote:
2008/2/9, hardc0d3r <[EMAIL PROTECTED]>:
in a form or action class, you can set an ActionError or ActionMessage. i am
wondering if there is a way in jsp that i can know what error occurred in
the validation. for example, the username field is left blank so i will add
it to the errors. i want to be able to highlight that field so that the user
can notice it immediately..
Use <html:messages>:
http://struts.apache.org/1.3.8/struts-taglib/tlddoc/html/messages.html
Antonio
Or, even easier if you just want to highlight fields that have errors,
is to use one of the errorStyle/errorStyleClass/errorStyleId attributes
to associate appropriate CSS rules with that input.
http://struts.apache.org/1.3.8/struts-taglib/tagreference.html#text
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]