Hi,
I tried setting the response headers in the action before forwarding to the appropriate jsp page...but the pages are still cached for some reason...here is what i did..please can you tell me what I am doing wrong.
Thanks.

In the action method...
       request.setAttribute("orders", orders);
       response.setHeader("Cache-Control", "no-cache");
       response.setHeader("Pragma","no-cache");
       response.setHeader("Cache-Control","no-store");
       return mapping.findForward("edit_cancel_list");


In the jsp...

<%@ include file="/taglibs.jsp"%>
<head>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"/>
</head>
<script>
.
.


Michael Jouravlev wrote:
Do the pages have the same URL? Set "no-cache" response header either
individually for that page, or globally for a whole Struts application
using <controller nocache="true"/>.

On 6/9/06, Rizwan Merchant <[EMAIL PROTECTED]> wrote:

Hi,
I have a page with a bunch of orders, and each order has a "Cancel"
button next to it and the status text of that order. When I cancel a
particular order, the appropriate action is called, the order is
canceled and the action then returns to the same page. I can see the
page being reloaded (thru the status bar on the browser), but the status
text (which should now say "Canceled") for the order remains the same
until I hit "Refresh" again (or come back to the page by navigating to it).
Is it possible that the browser is caching the status text and how can I
overcome this problem?

Thanks,
-Riz.

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

Reply via email to