Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: Giving access to an html file in tomcat

Cees van de Griend

2003-12-08

Replies:

On Monday 08 December 2003 21:40, Bender, Christopher wrote:
> Hey,
>
> I have added the following to my web.xml of one of my web apps:
>
>  <error-page>
>    <error-code>403</error-code>
>    <location>/error/error.htm</location>
>  </error-page>
>
>
> When I try and test this (go to a page I do not have access to that will
> throw a 403 error), i get the Internet Explorer error page that says "You
> might not have permission to view this directory or page using the
> credentials you supplied" and not my page (and not even a tomcat page).
>
> Am I missing some configuration somewhere?

IE has some (un)helpfull option which translates error codes to a self
generated page. If I recall correctly, it shows the correct page if the size
of the error page is greater then some KB (8 KB?).

So, you have 2 options: disable the option in IE or generate larger error
pages.

Regards,
Cees.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.