Women in Technology

Hear us Roar



Article:
  Deploying Web Applications to Tomcat
Subject:   Can Tomcat automatically recompile JSPs?
Date:   2001-06-26 06:53:23
From:   ajag
Working through this excellent tutorial, I found that I had to go and find the compiled versions of my JSPs and delete them before any changes to the JSPs were reflected in the browser. Is there a way to get Tomcat to automatically reprocess a JSP when it has been changed?


Thanks - A.

Full Threads Newest First

Showing messages 1 through 3 of 3.

  • Can Tomcat automatically recompile JSPs?
    2001-08-03 11:12:02  teamturner [View]

    Did you ever get an answer to your question? I am having the same problem.
    • 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
  • Can Tomcat automatically recompile JSPs?
    2003-09-23 05:31:44  anonymous2 [View]

    yes