Re: IE 9 ignoring my custom error pages with 404 codes

2012-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Konstantin,

On 5/12/12 6:24 PM, Konstantin Kolinko wrote:
 I remember seeing someone adding a few KBs of HTML comments into
 the error page, because that suppresses this behaviour of IE.

+1

Looks like 512 bytes of response is the magic number for MSIE 5 and
6[1]. Researching later versions like MSIE 9 is left asan exercise for
the reader.

[1] http://support.microsoft.com/kb/294807

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+xJl4ACgkQ9CaO5/Lv0PBrmQCfTJXdGwClcWNmk5DE1oWrlqsJ
n3sAnRSyL6jAYuFAdyCesg3ryL2gmpOf
=Lsr1
-END PGP SIGNATURE-

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



Re: IE 9 ignoring my custom error pages with 404 codes

2012-05-14 Thread Kiran Badi


Thanks everyone, I added lot of comments and now my custom error page is 
close to 1kb and this resolved my issue.


Now I am battling another weird issue,maybe again I need help of 
community till I come to some speed.


On 5/14/2012 9:05 PM, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Konstantin,

On 5/12/12 6:24 PM, Konstantin Kolinko wrote:

I remember seeing someone adding a few KBs of HTML comments into
the error page, because that suppresses this behaviour of IE.

+1

Looks like 512 bytes of response is the magic number for MSIE 5 and
6[1]. Researching later versions like MSIE 9 is left asan exercise for
the reader.

[1] http://support.microsoft.com/kb/294807

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+xJl4ACgkQ9CaO5/Lv0PBrmQCfTJXdGwClcWNmk5DE1oWrlqsJ
n3sAnRSyL6jAYuFAdyCesg3ryL2gmpOf
=Lsr1
-END PGP SIGNATURE-

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





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



Re: IE 9 ignoring my custom error pages with 404 codes

2012-05-13 Thread Stefan Mayr

Hello,

Am 13.05.2012 00:24, schrieb Konstantin Kolinko:

2012/5/13 Kiran Badiki...@poonam.org:

Hi,

I am trying to setup custom error page and has done below modification to
web.xml

error-page
error-code500/error-code
location/errorback.jsp/location
/error-page
error-page
error-code404/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.


The usual limit is 512kb for 404 pages (Attention: some people report 
this limit also accounts for compressed content).


Eric Law documented some details in his blog post: 
http://blogs.msdn.com/b/ieinternals/archive/2010/08/19/http-error-pages-in-internet-explorer.aspx


He also has details where to find the limits for different error codes 
in the registry.


Bye,

  Stefan



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



Re: IE 9 ignoring my custom error pages with 404 codes

2012-05-13 Thread Pid
On 12/05/2012 23:14, Kiran Badi wrote:
 Hi,
 
 I am trying to setup custom error page and has done below modification
 to web.xml
 
 error-page
 error-code500/error-code
 location/errorback.jsp/location
 /error-page
 error-page
 error-code404/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 ?

The trick we used to use: make a larger error page (in terms of file
size) by adding a block of text in an HTML comment.


p


-- 

[key:62590808]



signature.asc
Description: OpenPGP digital signature


IE 9 ignoring my custom error pages with 404 codes

2012-05-12 Thread Kiran Badi

Hi,

I am trying to setup custom error page and has done below modification 
to web.xml


error-page
error-code500/error-code
location/errorback.jsp/location
/error-page
error-page
error-code404/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 ?




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



Re: IE 9 ignoring my custom error pages with 404 codes

2012-05-12 Thread Konstantin Kolinko
2012/5/13 Kiran Badi ki...@poonam.org:
 Hi,

 I am trying to setup custom error page and has done below modification to
 web.xml

 error-page
 error-code500/error-code
 location/errorback.jsp/location
 /error-page
 error-page
 error-code404/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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: IE 9 ignoring my custom error pages with 404 codes

2012-05-12 Thread Troy
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.koli...@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 ki...@poonam.org:
 Hi,

 I am trying to setup custom error page and has done below modification to
 web.xml

 error-page
 error-code500/error-code
 location/errorback.jsp/location
 /error-page
 error-page
 error-code404/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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


 


Re: IE 9 ignoring my custom error pages with 404 codes

2012-05-12 Thread Kiran Badi
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 Kolinkoknst.koli...@gmail.com
To: Tomcat Users Listusers@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 Badiki...@poonam.org:

Hi,

I am trying to setup custom error page and has done below modification to
web.xml

error-page
error-code500/error-code
location/errorback.jsp/location
/error-page
error-page
error-code404/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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org







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