<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path;
String errorMsg = (String) request.getAttribute("errorMsg");
response.setStatus(response.SC_OK);
%>
<!doctype html>
<html>
<script language="JavaScript">
var times=6;
clock();
function clock()
{
window.setTimeout('clock()',1000);
times=times-1;
document.getElementById('webRedictTips').innerHTML= times + "秒后自动跳转至登陆页面";
console.log(times);
}
</script>
<head>
</head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv= "Refresh" content= "5;url=/">
<body bgcolor="#EBEEF7">
<form action="<%=basePath%>">
<table width="100%" border="0" cellspacing="0" cellpadding="4"
style="margin-top: 160px">
<tr height="30">
<td valign="middle" align="center"><font size="4" color="red"><%=errorMsg%></td>
</tr>
<tr height="30">
<td align="center"><span id="webRedictTips">5秒后自动跳转至登陆页面</span></td>
</tr>
<tr height="30">
<td valign="middle" align="center"><input type="submit"
value="登陆"></td>
</tr>
</table>
</form>
</body>
</html>