code028.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>定时跳转</title>
</head>
<body>
<%
response.setHeader("refresh", "2;URL=http://www.baidu.com"); //2秒后跳转
%>
</body>
</html>