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]>

Reply via email to