RE: Problem with error-page

2004-05-21 Thread Frank T. Murphy

Could be the size of the generated page.  Check the thread I started about
the different problem with the error-page.   In order for IE not to hijack
it it s/b bigger than 500k.

see this url

http://www.404-error-page.com/404-error-page-too-short-problem-microsoft-ie.shtml


|-+>
| |   "Jim Kennedy"|
| |   <[EMAIL PROTECTED]|
| |   ring.com>|
| ||
| |   05/21/2004 12:30 |
| |   PM   |
| |   Please respond to|
| |   "Tomcat Users|
| |   List"|
| ||
|-+>
  
>---|
  |
   |
  |   To:   "'Tomcat Users List'" <[EMAIL PROTECTED]>  
  |
  |   cc:  
           |
  |   Subject:  RE: Problem with error-page
   |
  
>---|




The suggestion to change 403.jsp to something like _403.jsp did not work.
I
did however change my browser setting in the advanced section concerning
"friendly error messages".  This did work.  I still don't understand why
the
IE browser distinguishes between an HTML error page and a JSP error page.
The browser, it would seem to me, would not be aware of that.

Here's the first message again:

 I am trying to configure a custom error page when users try to access an
area of my site that they don't have sufficient rights to access.

The book says this to configure this in web.xml:

 
 403
 /error/403.jsp
 

This doesn't work for me, but

 
 403
 /error/403.html
 

Does work.  Is there a problem with using JSP's.


I'm am using JBOSS with Tomcat, but that shouldn't matter.  It's still the
Tomcat engine.  I'm also using Struts.

I'm using Tomcat 4.1.24.

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 20, 2004 5:32 PM
To: 'Tomcat Users List'
Subject: RE: Problem with error-page

Doooh. My quick guess was not right, then:).

Sorry.

-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED]
Sent: May 20, 2004 14:48
To: 'Tomcat Users List'
Subject: RE: Problem with error-page


DOH!  prepend is what I meant to say.

> -----Original Message-----
> From: Mike Curwen [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 20, 2004 3:45 PM
> To: 'Tomcat Users List'
> Subject: RE: Problem with error-page
>
>
> I had never thought of that!  But when I tested it, it seems
> that JASPER appends a _, and so a JSP  page that starts with
> a number should still work.
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem with error-page

2004-05-21 Thread Ralph Einfeldt

I'm not shure about the response code that is returned
in both cases. 

It's possible that tomcat returns a different response code
for a html and a jsp. (Like 200 for html because the html 
error page was found and some other value for the jsp because 
the jsp explicitly sets an response code.)

Some recommendations to verify that:
- Listen with a tcp monitor and watch the headers.
- Use a browser (or other tool like telnet) that is able to 
  display the headers .

> -Original Message-
> From: Jim Kennedy [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 21, 2004 6:30 PM
> To: 'Tomcat Users List'
> Subject: RE: Problem with error-page
> 
> The suggestion to change 403.jsp to something like _403.jsp 
> did not work. I did however change my browser setting in the 
> advanced section concerning "friendly error messages".  
> This did work.  I still don't understand why the IE browser 
> distinguishes between an HTML error page and a JSP error page.
> The browser, it would seem to me, would not be aware of that.
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem with error-page

2004-05-21 Thread Jim Kennedy
The suggestion to change 403.jsp to something like _403.jsp did not work.  I
did however change my browser setting in the advanced section concerning
"friendly error messages".  This did work.  I still don't understand why the
IE browser distinguishes between an HTML error page and a JSP error page.
The browser, it would seem to me, would not be aware of that.

Here's the first message again:

 I am trying to configure a custom error page when users try to access an
area of my site that they don't have sufficient rights to access.

The book says this to configure this in web.xml:


403
/error/403.jsp


This doesn't work for me, but


403
/error/403.html


Does work.  Is there a problem with using JSP's.


I'm am using JBOSS with Tomcat, but that shouldn't matter.  It's still the
Tomcat engine.  I'm also using Struts.

I'm using Tomcat 4.1.24.

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 20, 2004 5:32 PM
To: 'Tomcat Users List'
Subject: RE: Problem with error-page

Doooh. My quick guess was not right, then:).

Sorry.

-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED]
Sent: May 20, 2004 14:48
To: 'Tomcat Users List'
Subject: RE: Problem with error-page


DOH!  prepend is what I meant to say.

> -Original Message-
> From: Mike Curwen [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 20, 2004 3:45 PM
> To: 'Tomcat Users List'
> Subject: RE: Problem with error-page
> 
> 
> I had never thought of that!  But when I tested it, it seems 
> that JASPER appends a _, and so a JSP  page that starts with 
> a number should still work.
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem with error-page

2004-05-20 Thread Yansheng Lin
Doooh. My quick guess was not right, then:).

Sorry.

-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: May 20, 2004 14:48
To: 'Tomcat Users List'
Subject: RE: Problem with error-page


DOH!  prepend is what I meant to say.

> -Original Message-
> From: Mike Curwen [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 20, 2004 3:45 PM
> To: 'Tomcat Users List'
> Subject: RE: Problem with error-page
> 
> 
> I had never thought of that!  But when I tested it, it seems 
> that JASPER appends a _, and so a JSP  page that starts with 
> a number should still work.
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem with error-page

2004-05-20 Thread Mike Curwen
DOH!  prepend is what I meant to say.

> -Original Message-
> From: Mike Curwen [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 20, 2004 3:45 PM
> To: 'Tomcat Users List'
> Subject: RE: Problem with error-page
> 
> 
> I had never thought of that!  But when I tested it, it seems 
> that JASPER appends a _, and so a JSP  page that starts with 
> a number should still work.
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem with error-page

2004-05-20 Thread Mike Curwen
I had never thought of that!  But when I tested it, it seems that JASPER
appends a _, and so a JSP  page that starts with a number should still
work.


> -Original Message-
> From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 20, 2004 3:33 PM
> To: 'Tomcat Users List'; [EMAIL PROTECTED]
> Subject: RE: Problem with error-page
> 
> 
> Class names must be a legal Java identifier, i.e., starts 
> with a letter, $, or _.
> 
> -Yan
> 
> -Original Message-
> From: Jim Kennedy [mailto:[EMAIL PROTECTED] 
> Sent: May 20, 2004 12:50
> To: 'Tomcat Users List'
> Subject: Problem with error-page
> 
> 
>  I am trying to configure a custom error page when users try 
> to access an area of my site that they don't have sufficient 
> rights to access.
> 
> The book says this to configure this in web.xml:
> 
>   
>   403
>   /error/403.jsp
>   
> 
> This doesn't work for me, but
> 
>   
>   403
>   /error/403.html
>   
> 
> Does work.  Is there a problem with using JSP's.
> 
> 
> I'm am using JBOSS with Tomcat, but that shouldn't matter.  
> It's still the Tomcat engine.  I'm also using Struts.
> 
> I'm using Tomcat 4.1.24.
> 
> Anybody have troublem with this out there?
> 
> Thanks
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem with error-page

2004-05-20 Thread Yansheng Lin
Class names must be a legal Java identifier, i.e., starts with a letter, $,
or _.

-Yan

-Original Message-
From: Jim Kennedy [mailto:[EMAIL PROTECTED] 
Sent: May 20, 2004 12:50
To: 'Tomcat Users List'
Subject: Problem with error-page


 I am trying to configure a custom error page when users try to access an
area of my site that they don't have sufficient rights to access.

The book says this to configure this in web.xml:


403
/error/403.jsp


This doesn't work for me, but


403
/error/403.html


Does work.  Is there a problem with using JSP's.


I'm am using JBOSS with Tomcat, but that shouldn't matter.  It's still the
Tomcat engine.  I'm also using Struts.

I'm using Tomcat 4.1.24.

Anybody have troublem with this out there?

Thanks


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]