tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Badi <ki...@poonam.org>
Subject Re: IE 9 ignoring my custom error pages with 404 codes
Date Sun, 13 May 2012 00:48:12 GMT
Thanks Troy and Konstantin.Adding couple of HTML comments resolved the 
issue.


On 5/13/2012 5:41 AM, Troy wrote:
> Kiran,
>
> I agree with Konstantin on this one. In my previous experiences with IE (not sure about
IE9) it will 'hijack' custom 404 pages and display the default IE 404 page if your custom
page is insufficient in size.  Increase your page size (in KBs) and see if that resolves your
issue.
>
> Troy Parrish
>
>
>
> -----Original Message-----
> From: Konstantin Kolinko<knst.kolinko@gmail.com>
> To: Tomcat Users List<users@tomcat.apache.org>
> Sent: Sat, May 12, 2012 6:25 pm
> Subject: Re: IE 9 ignoring my custom error pages with 404 codes
>
>
> 2012/5/13 Kiran Badi<kiran@poonam.org>:
>> Hi,
>>
>> I am trying to setup custom error page and has done below modification to
>> web.xml
>>
>> <error-page>
>> <error-code>500</error-code>
>> <location>/errorback.jsp</location>
>> </error-page>
>> <error-page>
>> <error-code>404</error-code>
>> <location>/errorback.jsp</location>
>>
>> Then in errorback.jsp
>>
>> I wrote the default hello jsp page and triggered 404 condition to check if
>> setting are working fine,the above setting seems to be working fine in
>> chrome/firefox but for some reasons IE is still showing up its own 404
>> message and aborting the further calls to my 404 page which I styled it some
>> images and other things.
>>
>> Now after further investigation, I came across a setting in IE9 where in
>> there is checkbox to show friendly http error messages, if I turn this off,
>> I get my error page else I dont get it.
>>
>> Now I want to show custom error page to my users. Is their any workaround
>> for this ? Ideally I would have expected IE to deliver what tomcat serves
>> and in this case custom error page but its not happening when checkbox is
>> turned on.
>>
>> Is their any work around for this or I have to accept the whatever IE is
>> doing ?
> Ask Microsoft? It is their beast.
>
> I remember seeing someone adding a few KBs of HTML comments into the
> error page, because that suppresses this behaviour of IE.
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message