wood burning stoves*
The moose likes Struts and the fly likes Handling Internal Server Error - 500 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Handling Internal Server Error - 500" Watch "Handling Internal Server Error - 500" New topic
Author

Handling Internal Server Error - 500

Parameswaran Thangavel
Ranch Hand

Joined: Mar 01, 2005
Posts: 485
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

Joined: Feb 15, 2005
Posts: 4864
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 ]

Merrill
Consultant, Sima Solutions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Handling Internal Server Error - 500