<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!--本页用来说明response对象-->
<%@ page import="java.util.Date,java.text.SimpleDateFormat"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>定时刷新页面</title>
</head>
<body>
<b><font color="Black">本页用来说明response对象</font></b>
<br>
<b>当前时间为：</b>
<%
response.setHeader("refresh","10");
%>
<%SimpleDateFormat formater = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
out.println(formater.format(new Date()));
%>
</body>
</html>
