File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Strut2 exception handling

 
debraj mallick
Ranch Hand
Posts: 188
Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 188
Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have solved it. To get the exception stack I have used this code:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic