JSP学习笔记(八)-----include的运用
1. 向JSP页面中插入指定的页面方法有两种:
2. a.jsp代码如下:
JSP命令<%@ include%>
JSP动作<jsp:include />
JSP动作<jsp:include />
2. a.jsp代码如下:
<html>huanghui
<%@ include file="b.jsp"%>
<jsp:include page="b.jsp" flush="true"/>
</html>
3. b.jsp代码如下:<%@ include file="b.jsp"%>
<jsp:include page="b.jsp" flush="true"/>
</html>
<html>hello</html>