You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "C.F. Scheidecker Antunes" <na...@antunes.eti.br> on 2005/10/21 23:50:57 UTC
Forcing JSP reloading, avoiding IE caching of it
Hello all,
I have a struts app that works great on Firefox, however when I use IE I
have problems with it.
I guess that IE caches the JSP page. So when the action sends the data
to the JSP I always have the same
thing.
So I read about it and found that if you add on the struts-config.xml
<controller nocache="true"/> it would
solve the issue. Well it does not solve it in its entirely.
I would like to ask if I could have something on the JSP or the HTML
part of it to force reloading by IE.
Any suggestions?
Thanks,
C.F.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Forcing JSP reloading, avoiding IE caching of it
Posted by br...@bitstream.net.
I ran into a related problem recently that could be worked around by
switching the "Check for newer versions of stored pages" setting in IE
from "Every visit to the page" to "Automatic".
As described here:
http://www.microsoft.com/windows/ie/using/howto/customizing/clearcache.mspx
However that's not much good if you have a website and don't want to force
users to change settings. Or require users to use a real browser. ;-)
I'd be interested to see if there are programming related solutions.
Brady
> Hello all,
>
> I have a struts app that works great on Firefox, however when I use IE I
> have problems with it.
> I guess that IE caches the JSP page. So when the action sends the data
> to the JSP I always have the same
> thing.
>
> So I read about it and found that if you add on the struts-config.xml
> <controller nocache="true"/> it would
> solve the issue. Well it does not solve it in its entirely.
>
> I would like to ask if I could have something on the JSP or the HTML
> part of it to force reloading by IE.
> Any suggestions?
>
> Thanks,
>
> C.F.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Forcing JSP reloading, avoiding IE caching of it
Posted by Christian Bollmeyer <ja...@christianbollmeyer.de>.
Hi,
you may want to check out these first:
http://support.microsoft.com/kb/234067/EN-US/
http://support.microsoft.com/kb/222064/EN-US/
Then, IE understands extended HTTP/1.1 Cache-Control headers
that the <nocache> directive doesn't issue. For testing, add
the following line to the top of your JSP:
<%
response.addHeader("Cache-Control", "post-check=0, pre-check=0");
%>
HTH,
-- Chris.
C.F. Scheidecker Antunes schrieb:
> Hello all,
>
> I have a struts app that works great on Firefox, however when I use IE I
> have problems with it.
> I guess that IE caches the JSP page. So when the action sends the data
> to the JSP I always have the same
> thing.
>
> So I read about it and found that if you add on the struts-config.xml
> <controller nocache="true"/> it would
> solve the issue. Well it does not solve it in its entirely.
>
> I would like to ask if I could have something on the JSP or the HTML
> part of it to force reloading by IE.
> Any suggestions?
>
> Thanks,
>
> C.F.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Forcing JSP reloading, avoiding IE caching of it
Posted by Keith Sader <ks...@gmail.com>.
You can't really force the browser to do anything, but you can hint it
with the following:
http://www.jguru.com/faq/view.jsp?EID=377
best of luck,
On 10/21/05, C.F. Scheidecker Antunes <na...@antunes.eti.br> wrote:
> Hello all,
>
> I have a struts app that works great on Firefox, however when I use IE I
> have problems with it.
> I guess that IE caches the JSP page. So when the action sends the data
> to the JSP I always have the same
> thing.
>
> So I read about it and found that if you add on the struts-config.xml
> <controller nocache="true"/> it would
> solve the issue. Well it does not solve it in its entirely.
>
> I would like to ask if I could have something on the JSP or the HTML
> part of it to force reloading by IE.
> Any suggestions?
>
> Thanks,
>
> C.F.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Keith Sader
ksader@gmail.com
http://www.saderfamily.org/roller/page/ksader
http://www.jroller.com/page/certifieddanger
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org