Hi, Hmm. Did you try a subclass of exception, e.g. java.lang.NumberFormatException for your test JSP?
Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Alex [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, February 11, 2003 9:32 AM >To: [EMAIL PROTECTED] >Subject: <error-page> in web.xml doesn't work > >Hello... > > i'm using tomcat 4.1.18. >i've set up a new web application, containing only 1 jsp. >also, i've set up web.xml to redirect to errorpage.html when my jsp throw >an >exception. >errorpage.html is located in the application's root directory. >Also, i've tried to use a jsp page, instead of the html page, as a error >page, and, still, no result. >But it doesn't work, so, can anyone help me ? > >thanks in advance... >Alex > > >here's the code for those 3 files: > >1.jsp ><% int a = Integer.parseInt("a"); %> ><%=a%> > >web.xml >... ><web-app> ><error-page> ><exception-type>java.lang.Exception</exception-type> ><location>/errorpage.html</location> ></error-page> ></web-app> > >errorpage.html ><html><body>there was an error!!!</body></html> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
