JSP 2秒跳转到首页

<%@ page contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>
<html>
<head>
<title>
show request
</title>
</head>

<body>
<center>
<h2>2秒后跳转到首页</h2>
</center>

<%
response.setHeader("refresh", "2;URL=../index.jsp");
%>
</body>

</html>

原文地址:https://www.cnblogs.com/unixshell/p/3176338.html