Java web ch03_4_include.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>被include包含的文件</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>

 

 

 

 

 

 

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>include指令实例</title>
</head>
<body>
<center>
现在的日期和时间是: <%=new Date()%>
<hr>
<%@ include file="ch03_4_include1.jsp" %></center>
</body>
</html>

 

 

 

 

 

 

posted on 2017-10-10 23:47  蒙查查  阅读(84)  评论(0编辑  收藏  举报

导航