I am still trying to fix error page problem. This is my server.xml
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="/myapp" docBase="myapp"
debug="0" crossContext="true" reloadable="true">
<Resource name="jdbc/myoracle" auth="Container"
type="javax.sql.DataSource"/>
.......
.......
</Context>
</Host>
I have a directory "$TOMCAT_HOME/webbapps/myapp" in my system. I created
"error/404.html" in $TOMCAT_HOME/webbapps/myapp. But I am not able to
see 404.html if get 404 error, but I get page not found.
> It should he under your root directory of the application or the
> directory in which your web-inf is present. Say c:\app\root\error
>
> Software Engineer
> Adamshand Inc
> www.interviewexchange.com
>
>
> -----Original Message-----
> From: Mathew [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 04, 2004 10:31 AM
> To: Tomcat Users List
> Subject: customized error page
>
>
> I have following code in my web.xml to redirect when ever I get 404
> error.
> But I don't know where I have to create error folder (relative path) and
> put 404.html. Is it under /WEB-INF of application ?
>
> <error-page>
> <error-code>404</error-code>
> <location>/error/404.html</location>
> </error-page>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]