URGENT !!! - bean method execution still ...
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   A_JP
Posted On:   Wednesday, April 4, 2001 10:14 AM

Hi !
Thanks for the response. But I tried using the

response.setHeader("Expires", "Tues, 01 Jan 1980 00:00:00 GMT");

method. But still it does not getting from the bean's business method. For the first time JSP is getting populated from calling the bean's business method but when reloaded using javascript reload method , it is getting populated from cache. Is there any way so that whenever the JSP page is reloaded (using Javascript method location.reload()), it executes the bean's method and populating instead of populating from the cache. It is urgent.

Thanks
AJP

Re: URGENT !!! - bean method execution still ...

Posted By:   Reema_Patel  
Posted On:   Thursday, April 5, 2001 09:57 AM

Try using

response.setHeader("Pragma", "no-cache");

and if this doesn't work then use the below:

response.setHeader("Cache-Control", "no-cache");

The Pragma response header attribute is for HTTP 1.0 legacy applications. cache-control response header is a part of HTTP 1.1 spec, however use this sparingly since it avoids disk caching at all.



Hope this helps,

Reema.

About | Sitemap | Contact