Hi all, does anynoe encountered this problem, where by tomcat 3.1 standalone
kept displaying a cached copy of the servlet file instead of loading the
servlet everytime it is executed?

Apparently it won't grab the form values in my doGet, and also everytime I
recompile the servlet,  on re-load it gives me the previous copy at which I
have to restart tomcat to get the latest copy.

I have included all these stuff below in my servlet:

  res.setHeader("Cache-Control","no-cache");
  res.setHeader("Pragma","no-cache");
  res.setDateHeader ("Expires", 0); //prevents caching at the proxy server

I suppose these settings tell the browser not to cache that page, also in my
server.xml file I have set the reloadable="true" in the context path
setting, but apparently tomcat still caches the page

Any help is appreciated :)

Thankx

Reply via email to