I have a .jsp page with an included file (myPage.jsp, with <%@ include file = 'includedFile.jsp'>).

Alessandro A. Garbagnati

The include directive has to be considered as a static include of a piece of text inside a jsp page. The result is that the text of the page you're including is inserted inside your jsp and, the first time the jsp is requested, it is compiled into a servlet.

Since in the generated servlet code there are no reference to the included file, there is no reason for the servlet container, to recompile the page if the original page changes.

What you are looking for is a dynamic include, and you can do that using the <jsp:include/> tag that gives you back the same result, but it check every time if the page is present or not, changed or not, and, on change, it will provide you the newest version.