How do I create a JSP error page to handle particular error codes?
Author: Deron Eriksson
Description: This Java tutorial describes how to create a JSP to handle particular error codes.
Tutorial created using:
Windows XP || JDK 1.5.0_09 || Eclipse Web Tools Platform 2.0 (Eclipse 3.3.0) || Tomcat 5.5.20
(Continued from page 1) One thing to be aware of is how Internet Explorer can handle errors. Sometimes Internet Explorer tries to 'help' by hiding your error page if a particular error code is experienced. If this occurs, you will see a result like the following instead of your error page: To turn this feature off in your browser, you can go to Tools → Internet Options. Go to the Advanced tab and go to 'Show friendly HTTP error messages' and uncheck it. This will prevent IE from hiding your error page. This is not an issue in Firefox. Since you usually don't have control of your users' browsers, it's good to be aware of this feature of IE when creating error pages for error codes. |