Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Handling Internal Server Error - 500

 
Parameswaran Thangavel
Ranch Hand
Posts: 485
  • 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
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic