tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mascha Kluge" <mascha.kl...@bytecom.net>
Subject AW: Problem in refresh the new jsp file
Date Wed, 09 May 2001 09:01:35 GMT

Hi,

write this in your .jsp:

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

This will avoid that the jsp-page is cached.

Regards, 
Mascha

____________________

Mascha-Kathinka Kluge
ByteCom GmbH
Martin-Luther-Str. 5a
97072 Wurzburg

Tel: +49 (931) 35 45 8-44
Fax: +49 (931) 35 45 8-19

http://www.bytecom.net
mailto:Mascha.Kluge@bytecom.net



> -----Ursprungliche Nachricht-----
> Von: Franky Tong [mailto:franky.tong@motorola.com]
> Gesendet: Mittwoch, 9. Mai 2001 10:42
> An: tomcat-user@jakarta.apache.org
> Betreff: Problem in refresh the new jsp file
> 
> 
> Hi all,
> 
> I have a problem that I get an outdated JSP page even if I 
> have updated
> the JSP file in the server. It shows me the old content in the browser
> even I have refreshed the page.
> 
> Is there something that I need to set about the caching?
> 
> Thanks!
> 
> 



Mime
View raw message