tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aniket B Sutaria" <aniketsuta...@rediffmail.com>
Subject Re: Custom Error Page Issue
Date Fri, 01 Nov 2002 16:33:40 GMT
Jaimes,

While configuring error page you will have to specify a preceeding 
"/".
Replace the lines,

   <error-page>
     <error-code>404</error-code>
     <location>myerror.jsp</location>
   </error-page>
   <error-page>
     <error-code>400</error-code>
     <location>myerror.jsp</location>
   </error-page>
   <error-page>
     <error-code>200</error-code>
     <location>myerror.jsp</location>
   </error-page>

with

   <error-page>
     <error-code>404</error-code>
     <location>/myerror.jsp</location>
   </error-page>
   <error-page>
     <error-code>400</error-code>
     <location>/myerror.jsp</location>
   </error-page>
   <error-page>
     <error-code>200</error-code>
     <location>/myerror.jsp</location>
   </error-page>

This will solve the problem.

Aniket

On Thu, 31 Oct 2002 Jaimes Blunt wrote :
>Hey Guys,
>
>I am trying to create a custom error page for my webapps, and I 
>am encountering the following message when I try to force an 
>error.
>Error page location myerror.jsp must start with a /
>My webapp file has the following included:
>  <error-page>
>    <error-code>404</error-code>
>    <location>myerror.jsp</location>
>  </error-page>
>  <error-page>
>    <error-code>400</error-code>
>    <location>myerror.jsp</location>
>  </error-page>
>  <error-page>
>    <error-code>200</error-code>
>    <location>myerror.jsp</location>
>  </error-page>
>
>Any ideas?
>
>Jaimes Blunt
>


Aniket Sutaria
Developer
Fortune Infotech Ltd

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message