RE: Will the execute method of ExceptionHandler be called ?

2005-03-18 Thread Sachin Bhutada
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

Re: Will the execute method of ExceptionHandler be called ?

2005-03-18 Thread Erik Weber
Sorry, I misunderstood. The answer is no. The processActionPerform method (as of 1.2.4) runs in a try/catch, while the processPopulate method does not. processPopulate basically just invokes RequestUtils.populate, which just throws a ServletException if it encounters any problems.

RE: Will the execute method of ExceptionHandler be called ?

2005-03-18 Thread Sachin Bhutada
Thanks erik .. -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 12:26 AM To: Struts Users Mailing List Subject: Re: Will the execute method of ExceptionHandler be called ? Sorry, I misunderstood. The answer is no. The processActionPerform

Re: Will the execute method of ExceptionHandler be called ?

2005-03-17 Thread Erik Weber
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.