tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: error-page directive ignored
Date Sat, 18 Oct 2003 19:10:33 GMT
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message