File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes global exceptions in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "global exceptions in struts" Watch "global exceptions in struts" New topic
Author

global exceptions in struts

Venkat Babu
Ranch Hand

Joined: Jan 12, 2007
Posts: 47
Hello,

I using struts 1.1, I am using global exceptions, but it is not working.

This is what I have added in struts-config.xml, but Sample.jsp is not called when the exception is thrown and I get the error page. Could someone please help me? Thanks.

<global-exceptions>
<exception
key="sample.error" type="java.lang.NumberFormatException" path="/jsp/Sample.jsp"/>
</global-exceptions>
 
GeeCON Prague 2014
 
subject: global exceptions in struts