You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Arnar Gestsson <ag...@trackwell.com> on 2002/01/09 13:15:03 UTC
Re: Default Mapping
Hi there,
use web.xml and the tag <error-page> and example would be
<error-page>
<error-code>404</error-code>
<location>/index.jsp</location>
</error-page>
i.e. anyone that gets 404 error is redirected to index.jsp.
BR Arnar
On Miư, 2002-01-09 at 14:10, antony@claire.co.jp wrote:
> Hi
>
> How can I make a default mapping for my application. Suppose I have an
> application testapp and I want any random string or incorrect string
> after the app name ,ie
>
> http://localhost:8180/testapp/randomwrongstring
>
> directed to
>
>
> http://localhost:8180/testapp/index.jsp
>
> Thanks for any help
>
> Cheers
>
> Antony
>
>
>
>
>
>
>
>
> --
> To unsubscribe: <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>