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, [EMAIL PROTECTED] 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:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 


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

Reply via email to