⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 showerrorinfo.jsp

📁 用于BBS交流的网站
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%
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>
    <base href="<%=basePath%>">
    
    <title>My JSP 'Error.jsp' starting page</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">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript">
	
		
		function jump(jumpInfo,remainTime,url) {
			var jumpTo = document.getElementById("jumpTo");
			if (jumpInfo == true) {
				jumpTo.innerHTML = "<a href='index.jsp'>跳转到主页</a>";
			} else {
				jumpTo.innerHTML = "<a href='register.jsp'>跳转到注册页面</a>";
			}
			
			delyTime(remainTime,url);

		}
		
		function delyTime(remainTime,url) {
			var jumpTimeRemain = document.getElementById("jumpTimeRemain");
			if (remainTime > 0) {
				jumpTimeRemain.innerHTML = "在<font color='red'>" + remainTime + "</font>秒后";
				remainTime --;
				window.setTimeout("delyTime('"+remainTime+"','"+url+"')",1000);
			} else {
				document.location.href = url;
			}

		}
	</script>
  </head>
  
  <body>
    <center>
    	<h2><font color="red">对不起,你还有登入!</font></h2>
    	<hr>
    	<div id="jumpTimeRemain"></div>
    	<div id="jumpTo"></div>
		<script type="text/javascript">
			jump(true,3,"digitalIndex.jsp");
		</script>
		<div id="register"><a href="register.jsp">注册</a></div>
		<div id="password"><a href="resumePasswd.jsp">找回密码</a></div>
    </center>
  </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -