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>

Reply via email to