File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Strut2 exception handling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Strut2 exception handling" Watch "Strut2 exception handling" New topic

Strut2 exception handling

debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

hi all,

in my application, i need to handle exception and persist the "stackstrace" into database.
I have used "global-exception-mappings" in struts.xml which is working fine.

if any exception occurs then "myexception" action is invoked, but how can i get the stacktrace?

any help would be appreciated.
debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

i have solved it. To get the exception stack I have used this code:
I agree. Here's the link:
subject: Strut2 exception handling
Similar Threads
Struts 2 Version of Struts 1 ExceptionHandler
Struts 2 Global Exception Handling (Convention Plugin)
Displaying response messages after some action executed
Struts 2 Exception Handling Question
TokenSession Interceptor