You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Antony Stace <s4...@yahoo.com> on 2002/04/04 12:17:44 UTC

Problem with IE5 not calling an Action

Hi

I have a jsp page.  An action populates some beans in the page and the jsp
uses those values to display the page.  Also in this page is 

<img src="<html:rewrite page="/generateImage.do"/>">

This action generates an image which is displayed on the page.  The generateImage.do Action checks some bean values to work out which image to send.  The problem is that the page works fine on

IE6
Netscape 6.2

It does not work on

IE5.

What I am seeing is that the jsp renders fine on the first rendering of the page for all browsers.  The second time the page is rendered the page renders fine on IE6 and Netscape 6.2 but with IE5 the image part of the jsp 

<img src="<html:rewrite page="/generateImage.do"/>">

is not displayed (it was correctly displayed on the first access for all).
For IE5 when I look in the tomcat4 logs I see the Action generateImage.do called the first access to the page, then on subsequent accesses it is not called.  
Any ideas folks?

Cheers

Tony






_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Problem with IE5 not calling an Action

Posted by James Mitchell <jm...@telocity.com>.
Yes, I use a similar concept.  I use my own taglib within my header.jsp
which is included site-wide.


like so....

<mytag:nocache/>



JM


> -----Original Message-----
> From: Antony Stace [mailto:s45652001@yahoo.com]
> Sent: Friday, April 05, 2002 1:39 AM
> To: Struts Users Mailing List
> Subject: Re: Problem with IE5 not calling an Action
>
>
> Thanks James for the reply.
>
> On Fri, 5 Apr 2002 01:31:21 -0500
> "James Mitchell" <jm...@telocity.com> wrote:
>
> > Not sure if this was answered yet but are you setting the
> content-type to
> > "image/gif" or "image/jpeg" depending on what you are serving up?
>
> Yup, still has problems with setting content-type to those values.
>  I have added
>
>          response.setHeader("Cache-Control", "no-cache");
>          response.setHeader("Pragma", "no-cache");
>          response.setHeader("Expires", "-1");
>
> to the Action and it works fine now in IE5, IE6 and Netscape 6.2.
> I want to use a filter to put this in all my responses, but I
> always get an error when I call
>
> chain.doFilter(request, response)
>
> so I am trying to figure this out at the moment.
>
> Cheers
>
> Tony
>
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Problem with IE5 not calling an Action

Posted by Antony Stace <s4...@yahoo.com>.
Thanks James for the reply.

On Fri, 5 Apr 2002 01:31:21 -0500
"James Mitchell" <jm...@telocity.com> wrote:

> Not sure if this was answered yet but are you setting the content-type to
> "image/gif" or "image/jpeg" depending on what you are serving up?

Yup, still has problems with setting content-type to those values.
 I have added 

         response.setHeader("Cache-Control", "no-cache");
         response.setHeader("Pragma", "no-cache");
         response.setHeader("Expires", "-1");

to the Action and it works fine now in IE5, IE6 and Netscape 6.2.  
I want to use a filter to put this in all my responses, but I always get an error when I call

chain.doFilter(request, response)

so I am trying to figure this out at the moment.

Cheers

Tony




_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Problem with IE5 not calling an Action

Posted by James Mitchell <jm...@telocity.com>.
Not sure if this was answered yet but are you setting the content-type to
"image/gif" or "image/jpeg" depending on what you are serving up?



JM

> -----Original Message-----
> From: Antony Stace [mailto:s45652001@yahoo.com]
> Sent: Thursday, April 04, 2002 5:18 AM
> To: struts-user@jakarta.apache.org
> Subject: Problem with IE5 not calling an Action
>
>
> Hi
>
> I have a jsp page.  An action populates some beans in the page and the jsp
> uses those values to display the page.  Also in this page is
>
> <img src="<html:rewrite page="/generateImage.do"/>">
>
> This action generates an image which is displayed on the page.
> The generateImage.do Action checks some bean values to work out
> which image to send.  The problem is that the page works fine on
>
> IE6
> Netscape 6.2
>
> It does not work on
>
> IE5.
>
> What I am seeing is that the jsp renders fine on the first
> rendering of the page for all browsers.  The second time the page
> is rendered the page renders fine on IE6 and Netscape 6.2 but
> with IE5 the image part of the jsp
>
> <img src="<html:rewrite page="/generateImage.do"/>">
>
> is not displayed (it was correctly displayed on the first access for all).
> For IE5 when I look in the tomcat4 logs I see the Action
> generateImage.do called the first access to the page, then on
> subsequent accesses it is not called.
> Any ideas folks?
>
> Cheers
>
> Tony
>
>
>
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>