Hi.

I've been experimenting with web.xml a little bit trying to set this and
that to make my webapp more friendly.

I started out with the <icon> tag... but found out soon that doesn't
work in Tomcat.  That's really quite allright with me...  But now I'm
trying the <error-page> and that's not working either.  I have the
following <error-page> tag in my web.xml:

<error-page>
        <error-code>404</error-code>
        <location>404.htm</location>
</error-page>

This does nothing.  I've got the 404.htm in the root of the webapp (and
the webapp is the root of the webserver).  If I try to add a slash ('/')
in front of the 404.htm Tomcat goes into an infinite loop (but still
keeps serving).  It's as if Tomcat is requesting a page that doesn't
exist itself... if I take the <error-page> tag out it works normal but I
get that ugly default 'not found' error page.

Now, can somebody tell me what exactly is it that works in 'web.xml' and
what has not been implemented?

Kind regards,
        Stefan.

--------------------------------------------
Stefan Freyr Stefansson
Software Developer
deCODE Genetics, Inc.
http://www.decode.com

Phone: (+354) 570 2854
GSM:   (+354) 861 1718
Fax:   (+354) 491 3782
 
 <<Stefan Stefansson.vcf>> 
BEGIN:VCARD
VERSION:2.1
N;ENCODING=QUOTED-PRINTABLE:;=01
REV:20001030T115142Z
END:VCARD
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to