You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Laurie Harper <la...@holoweb.net> on 2006/07/04 20:54:12 UTC

Re: Reloading certain things in cahce

Fredrik Andersson wrote:
> Hi all
> 
> I'm using
> getRequest().getSession().setAttribute(org.apache.struts.Globals.LOCALE_KEY,
> new java.util.Locale("sv","SV") );
> 
> To change the language on my page (using struts i18n
> internationalization). Now my page is storing the pages inside it's
> cache and I was woundering if I somehow can clear the MessageResources
> out of my cache so that it would be reloaded the next time I go anywhere
> on my site.

I'm not sure what cache you're talking about, but what you're seeing is 
probably a result of browser caching. Try turning on the Struts 
'nocache' option via the <controller> element in struts-config.xml, or 
explicitly include the appropriate cache control headers in each page.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org