Article:
  Deploying Web Applications to Tomcat
Subject:   Can Tomcat automatically recompile JSPs?
Date:   2001-08-03 11:12:02
From:   teamturner
Response to: Can Tomcat automatically recompile JSPs?

Did you ever get an answer to your question? I am having the same problem.
Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • Can Tomcat automatically recompile JSPs?
    2001-08-16 04:33:31  pjoanes [View]

    For reliable recompilation of JSPs I've found tomcat 4 to be better than 3.2.x.
    However your problem sounds more like maybe a timestamp/caching problem.
    To stop browsers caching a page I put the following at the top:

    <% response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
    response.setHeader("Pragma","no-cache"); //HTTP 1.0
    response.setDateHeader ("Expires", -1); //prevents caching at the proxy
    server
    %>
    Hope this helps,

    Peter Joanespjoanes@hotmail.com