struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sachin Bhutada <>
Subject RE: Will the execute method of ExceptionHandler be called ?
Date Fri, 18 Mar 2005 08:08:39 GMT

Thanks Erik,
		Yes execute method of ExceptionHandler will be invoked when
Action's execute method throws an Exception. 
But my question was .. Whether it will be invoked if some exception occurs
at the time of population the ActionForm's properties. Population is done by
Struts Utils classes. So I am not very much sure whether it will execute it
or not .


-----Original Message-----
From: Erik Weber []
Sent: Thursday, March 17, 2005 11:55 PM
To: Struts Users Mailing List
Subject: Re: Will the execute method of ExceptionHandler be called ?

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.


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.

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message