The location of the error page must be a real page and not a servlet. (But a jsp will work too)

With tomcat5 (actually servlet api 2.4), your error page can be a servlet.

-Tim

Vano Beridze wrote:
Hello
I have tomcat 4.1.27
RedHat 9
Sun jdk 1.4.2_01
Mozilla Firebird 0.7

here is the snippet from my web.xml
....
 <servlet>
   <servlet-name>GeneralErrorServlet</servlet-name>
   <servlet-class>com.silkroad.srm.GeneralErrorServlet</servlet-class>
 </servlet>
<servlet-mapping>
   <servlet-name>GeneralErrorServlet</servlet-name>
   <url-pattern>/generalerror</url-pattern>
 </servlet-mapping>
<error-page>
   <exception-type>java.lang.Throwable</exception-type>
   <location>/generalerror</location>
 </error-page>



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to