Okay, I've finally got this working except for one piece. I use
form.validate in my action to retrieve errors placed by the Struts
Validator in the ActionErrors object. Depending on the type of error in
ActionErrors, my action throws an exception and this in turn triggers
forwarding to a particular view based on the value of the path attribute
of the exception element in my 'struts-config.xml'. Once I have been
forwarded to the correct view, I cannot display the error message using
<html:errors></html:errors>. Does anyone know why?
I have the validate attribute of the action element set to false in my
'struts-config.xml' and this is the only way that I have been able to
make declarative exception handling work with the Struts Validator. If I
set the validate attribute to true, declarative exception handling does
not work and I am forwarded to the view specified in the input attribute
of my action element. In this case however, <html:errors></html:errors>
does display the error placed in ActionErrors by the Struts Validator.
Any help would be appreciated. Thank you.
- Asad
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]