Using directives to disabling cache for a document in transit won't help.
The response headers you added will increase the chances of a browser or
proxy not caching the document you are sending - it will not stop the
caching the server is doing with the properties file.. Unfortunately, you
have to restart the server, unless its configurable with regards to this
type of caching. For iWS 4.1 Windows NT, the only thing I can do it restart
the server.
Consider rewriting the code to read in the properties file, instead of using
a ResourceBundle.
-----Original Message-----
From: Sushil Singh [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 02, 2000 5:56 PM
To: [EMAIL PROTECTED]
Subject: ResourceBundle Caching Problem
Hi,
I am using a property file which contains some parameters, my JSP is
reading everytime whenever its called (GET). For the first time its
loading perfectly, now if I change the values in property file, still my
JSP is having old value, its uanble to refresh the values from Property
file.
I have disable page catching with following Header setting:
response.setHeader("Pragma", "no-cache" );
response.setHeader("Cache-Control", "no-cache" );
response.setHeader("Cache-Control", "no-store" );
response.setDateHeader("Expires", 0 );
For testing purpose, I am incrementing counter variable and its
incrementing which shows that JSP is called.
Any ideas?
Thanks in advance.
Sushil
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets