On Mon, 18 Feb 2002, Allan Kamau wrote:

> Date: Mon, 18 Feb 2002 03:56:27 -0800 (PST)
> From: Allan Kamau <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: error-page element in the web.xml HOWTO
>
> I'd like to configure an error page for my entire
> context.
> I've gone through the web-app_2_2.dtd and came up with
> the following solution which I added to my contexts
> web.xml file
>
>       <error-page>
>               <error-code>404</error-code>
>               <location>http://localhost:8080/</location>
>       </error-page>
>

This is not a valid <location> value.  You must specify the
context-relative path to a page *within* your app that should be displayed
instead, and the path must start with a '/' character.

Craig


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to