Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Global Exception Issue

 
Antony Raj
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic