在Eclipse中讓Tomcat可以每次都更新靜態檔案如*.html..等
不需要重新部屬...
第一種方法是在Tomcat啟動前加入參數
Disabling caching in Tapestry
It is troublesome to reload the application
before each test run. To solve the first part of the problem, you can tell
Tapestry to not to cache HTML and .page
files. To do that, you need to set a JVM system property
26 Chapter 1 Getting Started with Tapestry
org.apache.tapestry.disable-caching to
true. If you were starting the JVM yourself, you would run it like:
java -Dorg.apache.tapestry.disable-caching=true
...
However, as the JVM is started by Tomcat,
you need to setup a environment variable JAVA_OPTS before running
startup.bat:
Now, you can change say Home.html and the
change will take effect immediately.