开发者

Problem with reloaded data

开发者 https://www.devze.com 2023-02-19 01:03 出处:网络
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 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:

  1. Touch the JSP file, and make its last-modified timestamp newer than chache file's timestamp.
  2. Delete cache file saved as "foobar.java" and "foobar.class" in Tomcat work directory.
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号