You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nicolas <nl...@bregenzer.org> on 2004/04/16 23:54:52 UTC

catch NoSuchMethodException

hi

when i use the DispatchAction and someone tries to access a method which 
doesn't exist a NoSuchMethodException is thrown. how can i catch this 
exception and redirect or at least change the output ?

regards nicolas

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: catch NoSuchMethodException

Posted by Adam Hardy <ah...@cyberspaceroad.com>.
You can do that in the web.xml deployment descriptor. There's a section 
you set up defining what to do with various classes of exception.



On 04/16/2004 11:54 PM Nicolas wrote:
> hi
> 
> when i use the DispatchAction and someone tries to access a method which 
> doesn't exist a NoSuchMethodException is thrown. how can i catch this 
> exception and redirect or at least change the output ?
> 
> regards nicolas
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


-- 
struts 1.2 + tomcat 5.0.19 + java 1.4.2
Linux 2.4.20 Debian


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org