You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sachin Bhutada <Sa...@xoriant.com> on 2005/03/18 08:13:22 UTC
Will the execute method of ExceptionHandler be called ?
hi All,
It may be a silly question but just wanted to make sure. If some
exception is thrown at the time setting the bean properties, then will the
execute method of
Exception handler be called ? I am thinking of using declarative exception
handling it it works.
Thanks in Advance.
Sachin
Re: Will the execute method of ExceptionHandler be called ?
Posted by Erik Weber <er...@mindspring.com>.
Yes. The execute method of an ExceptionHandler is invoked whenever an
Action's execute method throws an Exception that the ExceptionHandler is
configured to handle (via "exception" elements in struts-config.xml). It
is then up to the handler to provide the forward rather than the Action.
http://struts.apache.org/userGuide/building_controller.html#exception_handler
Erik
Sachin Bhutada wrote:
>hi All,
> It may be a silly question but just wanted to make sure. If some
>exception is thrown at the time setting the bean properties, then will the
>execute method of
>Exception handler be called ? I am thinking of using declarative exception
>handling it it works.
>
>Thanks in Advance.
>
>Sachin
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org