I have just two jsp, one is index.jsp, and has set <%@ page errorPage="/ShowError.jsp" %> then in the body, I create an exception as follow <% double a1 = Double.parseDouble("abc") ; %>
then in ShowError.jsp, I write <%@ page isErrorPage="true" %> then in body, I write <%= exception.toString() %>
but the result is HTTP 500 - Internal server error
what is the problem? the index.jsp and ShowError.jsp is placed in the same folder!!
I am using Netbean 5.5.1 and JBoss 4.2.2, I also try to use Tomcat 5.5.17 but the result is same!!
HTTP 500 - Internal server error means nothing more than "There was a problem on the server". Look in the tomcat/logs directory for log files with the real cause of the problem.
It could also be that you have MSIE configured to show "Friendly Error Pages". If so, everything on the JSP end could be fine. Try disabling them. Tools -> Options -> Advanced (tab) -> scroll down to "Show Friendly Error Messages" and uncheck that item.
Originally posted by Bear Bibeault: Of course, remember that this only fixes it in your browser. Visitors who are using IE will still see the "helpful" "friendly" message.