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 Configuring RunTimeException class in Struts2 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 "Configuring RunTimeException class in Struts2" Watch "Configuring RunTimeException class in Struts2" New topic
Author

Configuring RunTimeException class in Struts2

James Peter
Ranch Hand

Joined: Sep 15, 2010
Posts: 115
Hi All,

My requirement is as follows. My application is built on Struts2 framework and using annotation plugin. When I get any RunTimeException I need to call a method of my custom class which prints error stack using e.printStackTrace() method. How can I configure this class in my application. I do not want to use try and catch block in each and every actions I have.

After getting error I want to display error.jsp to user. but in my tomcat console I would like to print error stack. Please let me know if anyone is having idea.

Thanks
Peter
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configuring RunTimeException class in Struts2