You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by kiuma <ki...@usa.net> on 2003/01/15 14:00:12 UTC

Re: AW: Refresh on MSIE, PLEASE HELP!! NOT SOLVED

Hirschmann, Bernhard ha scritto:

>>Sadly this doesn't solve the problem!
>>    
>>
>
>Does your browser use a http proxy? Maybe this is the reason.
>
>Bernhard
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>.
>
>  
>
No proxy set.
The fact is that with Mozilla works but not with MSIE.
I'm using tiles  and I see this strange bheav.

I'm using tiles

so I have

<%@ taglib uri="/WEB-INF/struts-tiles.tld"
        prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-bean-el.tld"
        prefix="bean-el" %>

<tiles:insert page="/skel.jsp" flush="true">
    <tiles:put name='title' content='WebAppointments v1.0' direct='true'/>
    <tiles:put name='topborder' content='/topborder.jsp'/>
    <tiles:put name='menu' content='/secure/menu.jsp'/>
    <tiles:put name='centerframe' 
content='/secure/activitycenteredit_center.jsp'/>
</tiles:insert>


I write the server current time in '/secure/menu.jsp' and 
'/secure/activitycenteredit_center.jsp' which contains the form.

but, while in men the time is update when i access the page, 
/secure/activitycenteredit_center.jsp continue to hold old values.


in skel.jsp'   header I've put

    <meta http-equiv="pragma" content="no cache">
    <meta http-equiv="cache-control" content="no store">
    <meta http-equiv="expires" content="0">


The problem is only with MSIE!!


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


Re: AW: Refresh on MSIE, PLEASE HELP!! NOT SOLVED

Posted by kiuma <ki...@usa.net>.
Ok, I've partially solved the problem in a bizarre way:
(remember that the problem was connected only with forms content)

Previously I had a list in my jsp page containing:

<html-el:button property="edit" 
onclick="window.open('../openActivCenter.do?id=${currentActivCenter.id}', 
'_self');">
  <bean-el:message key="button.view.edit"/>
</html-el:button>

I replaced it with

<html-el:submit property="action" onclick="setObjectValue( 'selectedAc', 
'${currentActivCenter.id}' );">
  <bean-el:message key="button.view.edit"/>
</html-el:submit>

modified the relative action, and now it works.

Can some1 explain me why?

thx,
  kiuma




Mark Galbreath ha scritto:

>Unfortunately, IE pretty much ignores Pragma header settings.  The best you
>can do is go to Tools -> Internet Options -> Temporary Internet Files ->
>Settings -> Check for newer versions on every visit to page.
>
>Mark
>
>-----Original Message-----
>From: Karim Saloojee [mailto:karims@hotpop.com] 
>Sent: Wednesday, January 15, 2003 8:34 AM
>
>I know that in IE you sometimes have to set the response headers in Java,
>e.g:
>
><%
>response.setHeader("Pragma", "no-cache"); response.setDateHeader("Expires",
>0); response.setHeader("Cache-Control", "no-cache"); %>
>
>Put that in skel.jsp.
>
>One last thing, make sure you have cleared out your IE cache before
>re-testing (Tools > Internet Options > Delete Files > Delete All Offline
>Content > Ok).
>
>
>
>--
>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: AW: Refresh on MSIE, PLEASE HELP!! NOT SOLVED

Posted by Mark Galbreath <ma...@qat.com>.
Unfortunately, IE pretty much ignores Pragma header settings.  The best you
can do is go to Tools -> Internet Options -> Temporary Internet Files ->
Settings -> Check for newer versions on every visit to page.

Mark

-----Original Message-----
From: Karim Saloojee [mailto:karims@hotpop.com] 
Sent: Wednesday, January 15, 2003 8:34 AM

I know that in IE you sometimes have to set the response headers in Java,
e.g:

<%
response.setHeader("Pragma", "no-cache"); response.setDateHeader("Expires",
0); response.setHeader("Cache-Control", "no-cache"); %>

Put that in skel.jsp.

One last thing, make sure you have cleared out your IE cache before
re-testing (Tools > Internet Options > Delete Files > Delete All Offline
Content > Ok).



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


Re: AW: Refresh on MSIE, PLEASE HELP!! NOT SOLVED

Posted by Karim Saloojee <ka...@hotpop.com>.
Hi

I know that in IE you sometimes have to set the response headers in Java,
e.g:

<%
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0);
response.setHeader("Cache-Control", "no-cache");
%>

Put that in skel.jsp.

One last thing, make sure you have cleared out your IE cache before
re-testing (Tools > Internet Options > Delete Files > Delete All Offline
Content > Ok).

Good Luck,
Karim

----- Original Message -----
From: "kiuma" <ki...@usa.net>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Wednesday, January 15, 2003 3:00 PM
Subject: Re: AW: Refresh on MSIE, PLEASE HELP!! NOT SOLVED


> Hirschmann, Bernhard ha scritto:
>
> >>Sadly this doesn't solve the problem!
> >>
> >>
> >
> >Does your browser use a http proxy? Maybe this is the reason.
> >
> >Bernhard
> >
> >--
> >To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> >For additional commands, e-mail:
<ma...@jakarta.apache.org>
> >
> >.
> >
> >
> >
> No proxy set.
> The fact is that with Mozilla works but not with MSIE.
> I'm using tiles  and I see this strange bheav.
>
> I'm using tiles
>
> so I have
>
> <%@ taglib uri="/WEB-INF/struts-tiles.tld"
>         prefix="tiles" %>
> <%@ taglib uri="/WEB-INF/struts-bean-el.tld"
>         prefix="bean-el" %>
>
> <tiles:insert page="/skel.jsp" flush="true">
>     <tiles:put name='title' content='WebAppointments v1.0' direct='true'/>
>     <tiles:put name='topborder' content='/topborder.jsp'/>
>     <tiles:put name='menu' content='/secure/menu.jsp'/>
>     <tiles:put name='centerframe'
> content='/secure/activitycenteredit_center.jsp'/>
> </tiles:insert>
>
>
> I write the server current time in '/secure/menu.jsp' and
> '/secure/activitycenteredit_center.jsp' which contains the form.
>
> but, while in men the time is update when i access the page,
> /secure/activitycenteredit_center.jsp continue to hold old values.
>
>
> in skel.jsp'   header I've put
>
>     <meta http-equiv="pragma" content="no cache">
>     <meta http-equiv="cache-control" content="no store">
>     <meta http-equiv="expires" content="0">
>
>
> The problem is only with MSIE!!
>
>
> --
> 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>