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>