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 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. RequestProcessor.process will throw this Exception on up to ActionServlet.process, which throws it on up to ActionServlet.doGet or doPost. Erik Sachin Bhutada wrote: >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 . > >Sachin > >-----Original Message----- >From: Erik Weber [mailto:[EMAIL PROTECTED] >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. > >http://struts.apache.org/userGuide/building_controller.html#exception_handl e >r > >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: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]