I don't know if this is your problem, but, to ensure that the "Pragma" and "Expires" meta tags work properly (at least in IE), you have to put them at the top of your page AND at the bottom of your page (I use a second "head" tag after the closing "body" tag, repeating the meta tags).

Erik


Metin Erksan wrote:

hi
i put below code in my jsp and solved problem.however
i use html-meta tags it doesnot work.when i use this
method it works. but i dont understand why this occurs
like this

sincerely




<% response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 response.setHeader("Pragma","no-cache"); //HTTP 1.0 response.setDateHeader ("Expires", 0); //prevents caching at the proxy server %>


--- Jim Barrows <[EMAIL PROTECTED]> wrote:





-----Original Message-----
From: Metin Erksan


[mailto:[EMAIL PROTECTED]


Sent: Friday, January 07, 2005 12:12 AM
To: user@struts.apache.org
Subject: cache problem


hi
i develop an insert/delete/update struts db


application.i use

jdeveloper10g and running embedded oc4j of


jdeveloper10g.when

i click "delete link" in my app, it deletes but


when i return

i can see that record.when i refresh page i cant


see taht

record and my delete operation succeed.how can i


correct this problem


i use "no-cache" option in html headers


Probably not a browser cache problem. You are
probably forwarding to the jsp page, rather then the
action that sets the page up. If you are forwarding
to the action, then the execute is not getting
called, or your otherwise not setting up the page. What happens when you set a break point in your
code?





sincereley


---------------------------------
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn


more.




---------------------------------------------------------------------


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








__________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250


---------------------------------------------------------------------
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]



Reply via email to