• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Struts 2 Version of Struts 1 ExceptionHandler

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you figure this out? I have the same problem! Thanks
 
Staci Mic
Greenhorn
Posts: 2
 
This one time, at bandcamp, I had relations with a tiny ad.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic