I know the performance difference between the following two
-
Include directive (
<%@ include file="test.jsp" %>): This includes the contents of the file during the compilation phase—i.e., when the page is converted to a servlet. -
Include action (
<jsp:include page="test.jsp" flush="true" />): This includes the contents of the file in the run-time—i.e., when a request is made for the page by the user.
But what about JSTL tag <c:import url="child.jsp" />
is the content included during the compilation phase or run-time?
Thanks!
It is included at runtime. And you can put an absolute URL there (you can include html from 3rd party sites)