📄 errorpage.jsp
字号:
<%@page language="java" contentType="text/html; charset=GBK"%>
<%@page errorPage="errorpage.jsp"%>
<HTML>
<HEAD>
<TITLE>错误</TITLE>
<link rel="stylesheet" href="style.css" type="text/css">
<style type="text/css">
<!--
.STYLE1 {color: #0066FF}
-->
</style>
</HEAD>
<script>
t = 5; // 计数器
setInterval("testTime()",1000); // 启动1秒定时
function testTime() {
if(t<0) return; // 计数器值小于0,表示尚未开始倒计时
if(t == 0) // 计数器值为0,转向
location = "javascript:history.back();";
view.innerHTML = "<b>"+t+"</b>"; // 显示倒计时
t--; // 计数器递减
}
</script>
<body>
<div align="center">
<table height="155" width="750" border="0" cellspacing="1"
align="center">
<tr>
<td><iframe name="top" height="155" width="750" scrolling="no"
src="top.jsp" frameborder="0"></iframe></td>
</tr>
</table>
</div>
<P align="center"><FONT COLOR="#FF0000" SIZE=2><B> <%
//if (exception != null) {
//out.print(exception.toString());
//} else
if (request.getAttribute("problem") != null) {
String str =(String) request.getAttribute("problem");
// byte[] tmpbyte=str.getBytes("ISO8859_1");
// str=new String(tmpbyte);
%> <%= str %> <% } else { %> (No error code) <% } %> </B></P>
<div align="center"><br>
<span class="STYLE1">本页将在<span id="view"></span>秒后自动跳转</span><B>
</B></div>
<p align="center">
<span align=center><a href="javascript:history.back();">如果您的浏览器没有自动返回,请点击这里</a></span> </p>
<div align="center">
<table height="155" width="750" border="0" cellspacing="1"
align="center">
<tr>
<td><iframe name="bottom" height="155" width="750" scrolling="no"
src="bottom.jsp" frameborder="0"></iframe></td>
</tr>
</table>
</div>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -