wood burning stoves*
The moose likes Struts and the fly likes Struts 2 Version of Struts 1 ExceptionHandler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 Version of Struts 1 ExceptionHandler" Watch "Struts 2 Version of Struts 1 ExceptionHandler" New topic
Author

Struts 2 Version of Struts 1 ExceptionHandler

David Zawesky
Greenhorn

Joined: Apr 21, 2011
Posts: 1
Is there a Struts 2 version of the Struts 1 org.apache.struts.action.ExceptionHandler?

I'm migrating a Struts 1 application to Struts 2. The Struts 1 application had a very custom Struts 1 ExceptionHandler which did auditing whenever an unhandled exception was thrown. I'm trying to migrate it to Struts 2. I'm using a global-exception-mapping to redirect the exception to my new Struts 2 Exception handler. Unfortunately, the actual exception is getting lost in the re-direct.

Here is the contents of my struts.xml file:



Inside "myErrorProcessor", I have the following:



Does anyone have any suggestions about how to pass the exception to my exception handler in Struts 2? Thanks!

Note: I used this tutorial when building this program.
Staci Mic
Greenhorn

Joined: May 02, 2011
Posts: 2
Did you figure this out? I have the same problem! Thanks
Staci Mic
Greenhorn

Joined: May 02, 2011
Posts: 2
I found this article: http://mail-archives.apache.org/mod_mbox/struts-user/201009.mbox/%3CAANLkTik=h+xwvKoK5sAgxc-Qh2oKTDYiNAY9xQjnzq7O@mail.gmail.com%3E

It might be a bug with 2.2.1 (I hope not?)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 Version of Struts 1 ExceptionHandler
 
Similar Threads
Struts 2 Global Exception Handling (Convention Plugin)
servlet action is not available
Error in building an application using Struts2
Struts 2: error on adding <global-exception-mappings> tag to struts.xml
Configuring First Struts Application