<%@include>jsp指令先包含再处理,<jsp:include>jsp动作先处理再包含
1.执行时间上:
< %@ include file=”relativeURI”%> 是在翻译阶段执行
< jsp:include page=”relativeURI” flush=”true” /> 在请求处理阶段执行.
2.引入内容的不同:
< %@ include file=”relativeURI”%引入静态文本(html,jsp),在JSP页面被转化成servlet之前和它融和到一起.
< jsp:include page=”relativeURI” flush=”true” />引入执行页面或servlet所生成的应答文本.
3.<%@include/>只能引入静态页面
<jsp:include> 引入页面可以带参数