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

Handling Internal Server Error - 500

 
Parameswaran Thangavel
Ranch Hand
Posts: 485
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
Is it possible to handle the invernal server error - 500 in struts-config.xml.

in struts we are giving exception type, i donno what type to declare to handle the internal server error.

Any pointers would help me.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a very generic HTML error message that occurs when pretty much anything goes wrong. You can't declare it as an exception to be handled in a Global exception. You have to declare a Java exception. If you want to cover pretty much any exception, then declare "java.lang.Exception" as your global exeption.
[ July 16, 2006: Message edited by: Merrill Higginson ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic