Re: DispatchAction error handling how to?
On Sun, Jan 26,'03 (09:43 PM GMT+0100), Johan wrote: Hi all, Can somebody please trow a light on error handling using a DispatchAction. The class org.apache.struts.actions.DispatchAction in Struts 1.1b2 is catching an InvocationTargetException. So when the 'dispatchMethod' invokes a method that throws an exception, it's catched here. How can I do some specific error handling? I don't want to code any catches in my action classes. How can I catch an exception in my DispatchAction? Why is org.apache.struts.actions.DispatchAction catching an InvocationTargetException? Are you using beta3 of struts1.1? If so you could use declarative exception handling in your config.xml just like you would for any other action. It works perfectly. Let me know if you have any more questions. -- Rick -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DispatchAction error handling how to?
Hi, No I'm using beta 2 of Struts. I'll try to use beta 3 I keep you in touch. Kind regards, -Oorspronkelijk bericht- Van: Rick Reumann [mailto:[EMAIL PROTECTED]] Verzonden: zondag 26 januari 2003 22:27 Aan: Struts Users Mailing List Onderwerp: Re: DispatchAction error handling how to? On Sun, Jan 26,'03 (09:43 PM GMT+0100), Johan wrote: Hi all, Can somebody please trow a light on error handling using a DispatchAction. The class org.apache.struts.actions.DispatchAction in Struts 1.1b2 is catching an InvocationTargetException. So when the 'dispatchMethod' invokes a method that throws an exception, it's catched here. How can I do some specific error handling? I don't want to code any catches in my action classes. How can I catch an exception in my DispatchAction? Why is org.apache.struts.actions.DispatchAction catching an InvocationTargetException? Are you using beta3 of struts1.1? If so you could use declarative exception handling in your config.xml just like you would for any other action. It works perfectly. Let me know if you have any more questions. -- Rick -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003 --- This mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DispatchAction error handling how to?
Could you please help me with an example of error handling using a dispatchAction using the declarative exception handling? Many thanks in advance, Kind regards -Oorspronkelijk bericht- Van: Johan Kumps [mailto:[EMAIL PROTECTED]] Verzonden: zondag 26 januari 2003 22:29 Aan: Struts Users Mailing List Onderwerp: RE: DispatchAction error handling how to? Hi, No I'm using beta 2 of Struts. I'll try to use beta 3 I keep you in touch. Kind regards, -Oorspronkelijk bericht- Van: Rick Reumann [mailto:[EMAIL PROTECTED]] Verzonden: zondag 26 januari 2003 22:27 Aan: Struts Users Mailing List Onderwerp: Re: DispatchAction error handling how to? On Sun, Jan 26,'03 (09:43 PM GMT+0100), Johan wrote: Hi all, Can somebody please trow a light on error handling using a DispatchAction. The class org.apache.struts.actions.DispatchAction in Struts 1.1b2 is catching an InvocationTargetException. So when the 'dispatchMethod' invokes a method that throws an exception, it's catched here. How can I do some specific error handling? I don't want to code any catches in my action classes. How can I catch an exception in my DispatchAction? Why is org.apache.struts.actions.DispatchAction catching an InvocationTargetException? Are you using beta3 of struts1.1? If so you could use declarative exception handling in your config.xml just like you would for any other action. It works perfectly. Let me know if you have any more questions. -- Rick -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003 --- This mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003 --- This mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]