爱悠闲 > 动态 INCLUDE 与静态 INCLUDE 的区别

动态 INCLUDE 与静态 INCLUDE 的区别

分类: JSP  |  标签: include,jsp,file  |  作者: yakihappy 相关  |  发布日期 : 2014-10-19  |  热度 : 526°

动态 INCLUDE jsp:include 动作实现
   <jsp:include page="included.jsp" flush="true" />
它总是会检查所含文件中的变化,适合用于包含动态页面,并且可以带参数
  
静态 INCLUDE include 伪码实现 , 定不会检查所含文件的变化,适用于包含静态页面
   <%@ include file="included.htm" %>