user1143343
user1143343

Reputation: 255

JSP page is being cached forever in tomcat

I've done all things mentioned here jsp page is cached, can not change it, tomcat, but still the same page. what else should I consider?

Upvotes: 0

Views: 2113

Answers (1)

adarshr
adarshr

Reputation: 62573

If using <%@ include file="someother.jsp" %>, I suggest touching the parent JSP as well as the included files.

The <%@ include file="file.jsp" %> includes files at compile time. So unless your parent file is changed, a recompilation is not forced.

If you use <jsp:include /> however, the inclusion is carried out at runtime, ensuring that you always get a fresh copy.

Upvotes: 6

Related Questions