(1)include指令html
include指令告诉容器:复制被包含文件汇总的全部内容,再把它粘贴到这个文件中。web
<%@ include file="Header.jsp"%>jsp
(2)include标准动做url
<jsp:include page=“Header.jsp”/>spa
(3)采用JSTLhtm
<c:import url="http://www.sina.com/index.html">import
注意:(1)include指令在转换时插入“Header.jsp”的源代码,而<jsp:include>标准动做在运行时插入“Header.jsp"的响应。容器
(2)采用前两种方式,只能包含当前web应用的界面, 不过,《c:import》能够包含容器以外的内容。file