JSP中动态INCLUDE与静态INCLUDE的区别?
动态INCLUDE用jsp:include动作实现
<jsp:include page=”included.jsp” flush=”true”/>它总是会检查所含文件中的变化,适合用于包含动态页面,并且可以带参数;
静态INCLUDE用include 伪码实现,不会检查所含文件的变化,适用于包含静态页面
< %@include file=”included.htm”%>;
时间:2022-05-10 21:52:58
JSP中动态INCLUDE与静态INCLUDE的区别?
动态INCLUDE用jsp:include动作实现
<jsp:include page=”included.jsp” flush=”true”/>它总是会检查所含文件中的变化,适合用于包含动态页面,并且可以带参数;
静态INCLUDE用include 伪码实现,不会检查所含文件的变化,适用于包含静态页面
< %@include file=”included.htm”%>;