This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Global Exception Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Global Exception Issue" Watch "Global Exception Issue" New topic
Author

Global Exception Issue

Antony Raj
Greenhorn

Joined: Oct 12, 2006
Posts: 5
Dear Guys,

If I enable global exceptions in struts-config.xml (I use version 1.3.9), with type=java.lang.Throwable, even if my application throws any runtime exception, I couldn't see any stack trace in the console.

I would like to why is that? Do I need to do something in order to see stack trace in the console?
Praveen Sangolli
Greenhorn

Joined: May 22, 2008
Posts: 28
Hi Antony

You can have a CustomExeception handler that extends ExceptionHandler, its just like your Action class but the execute method takes these parameters



and you need to return

instead of


and within the execute method you can perform any operation...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Global Exception Issue