This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Handling Internal Server Error - 500" Watch "Handling Internal Server Error - 500" New topic

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 ]

Consultant, Sima Solutions
wood burning stoves
subject: Handling Internal Server Error - 500
It's not a secret anymore!