Hi Koen:
Just realised, my earlie solution may result in the annoying alert (in IE) about
whether or not
you want to refresh the page.
So how about "fooling" the browser into thinking this is a "new" page? Attach a
random number
to the end of the url of your forwarded jsp (like
myPage.jsp?id=somelargerandomnumber). You will
have to make this change to the forward in your action, btw.. I remember reading this
technique
somewhere and thinking it a clever solution - except I didn't try it out ..!
Good luck - hope something works for you: life is too short to spend it solving
browser-caching
issues..:)
Geeta
Geeta Ramani wrote:
> Hi Koen:
>
> Try adding the foll. lines at the top of your (resultant) jsp:
>
> <%
> response.setHeader("Cache-Control", "no-cache");
> response.setHeader("Pragma", "no-cache");
> response.setIntHeader("Expires", 0);
> %>
>
> This *may* do the trick.. (I *hate* browser cache problems..(:(..)
> Regards,
> Geeta
>
> koen boutsen wrote:
>
> > Hi
> > I use a menu in my application. When a user clicks on a menu item, the browser
> > returns to a cached file, and does not do the action that is behind the menu item.
> > I thought I could solve this by making the forwards in the strutsconfig 'redirect
> > = true'.
> > This way, cliking a menu item does go to the action, but in the
> > browser, it always goes back to the page with the previous content.
> > When I refresh the page, the correct content appears (without any action on the
> > server.)
> > I use Websphere as application server and netscape en IE as browser.
> >
> > Can anyone explain me what really happens and how I can resolve this.
> >
> > Any help is very appreciated
> >
> > Koen Boutsen
> >
> > ____________________________________________________________
> > Find what you are looking for with the Lycos Yellow Pages
> > http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10
> >
> > ---------------------------------------------------------------------
> > 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]