jsp中页面包含的方法(转载)

//第一种:include指令当JSP转换成Servlet时引入指定文件

<%@ page contentType="text/html; charset=GB2312" language="java" errorPage=""%>
<%@ include file="head.jsp"%>
<%@ include file="body.jsp"%>
<%@ include file="tail.jsp"%>
//第二种:<jsp:include>动作元素当JSP页面被请求时引入指定文件
<%@ page contentType="text/html; charset=GB2312" language="java" errorPage=""%>
<jsp:include page="head.jsp"/>
<jsp:include page="body.jsp"/>
<jsp:include page="tail.jsp"/>

 

posted @ 2013-05-07 15:30  华电岳黎明  阅读(166)  评论(0编辑  收藏  举报