| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- String failMess = (String)session.getAttribute("failMess");
- if(failMess==null||failMess.equals("")){
- failMess = "";
- }
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <base href="<%=basePath%>">
-
- <title> 错误页面 | 气瓶电子标签动态监管集成系统</title>
-
- <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">
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta http-equiv="X-UA-Compatible" content="IE=10"/>
- <!--<meta http-equiv="refresh" content="3;url=http://localhost:8080/TT1/login.jsp" >
-
- -->
-
-
- </head>
-
- <body>
- <div style="width: 100%;height: 20%;"></div>
- <center><img alt="登陆等待" src="images/common/wunai.jpg" style="display: inline;"/><font style="display: inline;color: #f08300;font-size: 24px;">登陆出错!!!</font><font style="display: inline;color: blue;font-size: 18px;">(<%=failMess %>)</font><br/>
- <table width="100%" height="100px" border="0" cellpadding="0" cellspacing="0" style="display: inline;">
- <tr>
- <td align="center">
- <!--单位:秒-->
- 抱歉,<span id="endtime">10</span>秒后自动跳转到登陆窗口
- <br/>
- <a href = "<%=basePath %>jsp/login/loginre.jsp">
- 点击跳转
- </a>
- </td>
- </tr>
- </table>
-
- </center>
- </body>
- <script type="text/javascript">
- var id = setInterval(function(){
- if(navigator.userAgent.indexOf("MSIE")>0) {
- var obj = document.getElementById('endtime');
- var num = parseInt(obj.innerHTML);
- if(num<=0){
- document.location.href="jsp/login/loginre.jsp";
- }
- obj.innerHTML = num-1;
- }else if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){
- var obj = document.getElementById('endtime');
- var num = parseInt(obj.textContent);
- if(num<=0){
- document.location.href="jsp/login/loginre.jsp";
- }
- obj.textContent = num-1;
- } else{
- var obj = document.getElementById('endtime');
- var num = parseInt(obj.innerHTML);
- if(num<=1){
- document.location.href="jsp/login/loginre.jsp";
- }
- obj.innerHTML = num-1;
- }
- },1000);
-
- setTimeout(function(){
- document.location.href ="jsp/login/loginre.jsp";
- clearInterval(id);
- },10000);
- </script>
- </html>
|