aspose 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: global exceptions in struts
 
Similar Threads
Deprecated method
custom error page
Handling Exceptions
Built in exceptions in Struts
how to call a specific action