You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dario Geier <Da...@sharedbook.com> on 2003/03/25 17:23:51 UTC
Error Properties for Declarative Exception Handling
I would like to know if is there any way to add the ActionError property parameter in the Exception definition in the struts-config.xml file.
I see that the DTD defines how to specify the message key for the Error, so I presumed that there should be a way to specify the property too, as for adding the error like:
errors.add("password", new ActionError("error.user.signin.invalidpassword"));
Then, I could set that all "password" related errors be printed in the same place in the JSP file.
I see that the ExceptionHandler class takes the property field from the ModuleException or from the Error's message key, but nothing about the ExceptionConfig class.
Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org