我已经完成了这里提到的所有事情 jsp page is cached, can not change it, tomcat , 但仍然是同一页。我还应该考虑什么?
最佳答案
如果使用 <%@ include file="someother.jsp" %>
, 我建议 touching
父 JSP 以及包含的文件。
<%@ include file="file.jsp" %>
在编译时包含文件。因此,除非您的父文件发生更改,否则不会强制重新编译。
如果您使用 <jsp:include />
但是,包含是在运行时执行的,确保您始终获得新副本。
关于java - JSP 页面永远缓存在 tomcat 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8834292/