开发者

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:

  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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜