设立缓冲页面5秒
设置缓冲页面5秒
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>登录成功</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <!-- <link rel="stylesheet" type="text/css" href="styles.css"> --> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <style type="text/css"> <!-- body { background-color: #E4F3FB; } .STYLE2 {font-family: "隶书"} .STYLE3 { font-size: 16; color: #000066; font-weight: bold; } .STYLE6 {color: #000066; font-weight: bold; font-size: 16px; } .STYLE7 {font-size: 16px} .footer1 { text-align:center; font-size:16px; line-height:80px; color:#0000ff;position:absolute; top:160px; left:0px; width:1280px;} .footer2 { text-align:center; font-size:16px; line-height:80px; color:#5A5A5A;position:absolute; top:180px; left:0px; width:1280px;} --> BACKGROUND-COLOR: #ffcc00; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; FILTER: revealTrans(transition=23,duration=0.5) blendTrans(duration=0.5); PADDING-BOTTOM: 3px; PADDING-LEFT: 3px; PADDING-RIGHT: 3px; PADDING-TOP: 3px; POSITION: absolute; VISIBILITY: hidden } A { COLOR: #080808; FONT-SIZE: 10pt; TEXT-DECORATION: none } A:hover { COLOR: #FF0000; TEXT-DECORATION: none } </style></head> <body> <%String mname=(String)session.getAttribute("username"); %> <div class="footer1"> 您好,<%=mname %> </div> <div class="footer2"> <%response.setHeader("refresh","5;url=manager/home.jsp");%> 您已经成功登录,5秒后将自动跳转到新的页面 如没有跳转,请点击<a href="manager/home.jsp" >[跳转]</a> </div> </body> </html>