定义一个date页面
<%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<p>今天的日期是: <%= (new java.util.Date()).toLocaleString()%>
</p>
定义一个dateFile
<%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body><h1>我是歌谣</h1><jsp:include page="date.jsp" flush="false"/>
</body>
</html>
运行结果