Problem with reloaded data
I have a servlet which takes from jsp some data, and puts it in a file. Another jsp is using this data. I have a problem because my servlet uses an old file, despite changes. This changes are invisible until i res开发者_开发知识库tart TomCat. Is there any simple solution of this problem?
Tomcat - and many other servlet containers - caches compiled-JSPs.
Try one of following way:
- Touch the JSP file, and make its last-modified timestamp newer than chache file's timestamp.
- Delete cache file saved as "foobar.java" and "foobar.class" in Tomcat work directory.
精彩评论