Howdy, You may also have to disable "Show Friendly Error Pages" (or something similar) in Internet Explorer's Internet Options pages.
Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Carlos Pereira [mailto:[EMAIL PROTECTED] >Sent: Friday, October 03, 2003 11:25 AM >To: [EMAIL PROTECTED] >Subject: error-page directive > > I am using Tomcat 4.1.24 in Windows XP and I cannot define an error page. >I have defined it in web.xml as > > <error-page> > <error-code>500</error-code> > <location>/errorpage.hmtl</location> > </error-page> > >and none of them works. The page displayed is Tomcat's default error page. >The error-page tag seems to be simply ignored, as no errors are found in >the application initialization. > If I use > > <error-page> > <exception-type>java.lang.Throwable</exception-type> > <location>/errorpage.html</location> > </error-page> > >and throw an exception, like RuntimeException, IE shows it's default Error >500 - Internal Server Error page. > > I tried to put errorpage.html both in the server's root and the >application's context root. It doesn't work. > > I tried switching the location for a servlet mapping, like /error. It >doesn´t work. > > I upgraded Tomcat to 5.0.12. The result is the same. > > So, what's the problem? > > Regards, > Carlos Pereira > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]