include 指令: 页面包含(静态包含)指令,可以将一个 jsp 页面包含到另一个 jsp 页面中。
格式:<%@ include file=“被包含的文件地址”%>
taglib 指令: 在 jsp 页面中引入标签库(jstl 标签库、struts2 标签库)。
格式:<%@ taglib uri=“标签库地址” prefix=“前缀”%>
10、JSP 中动态 INCLUDE 与静态 INCLUDE 的区别?
动态 INCLUDE 用 jsp:include 动作实现, < jsp:include page=“included.jsp” flush=“true”/>它总是会检查所含文件中的变化,适合用于包含动态页面,并且可以带参数;
静态 INCLUDE 用 include 伪码实现,不会检查所含文件的变化,适用于包含静态页面 < %@ include file=“included.html” %>
————————————————