📄 errhand.jsp
字号:
<%@ page contentType="text/html; charset=GBK"%>
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/commonPage.css" type="text/css">
<%@ page isErrorPage="true" %>
<base target="_self">
<%@ page import="cn.com.juneng.system.common.exception.SystemBaseException" %>
<%@ page import="cn.com.juneng.system.common.COMMON" %>
<%@ page import="cn.com.juneng.system.common.exception.SystemRuleException" %>
<html><head> <title>Errer Handler</title></head><body>
<table >
<%
if(session.getAttribute("SysUser")==null){
/*
%>
<script>
alert("系统过期超时,请重新登录!");
top.location.href = "<%=request.getContextPath() %>";
</script>
<%
*/}
boolean error = true;
if((exception instanceof SystemRuleException)){
error = false;
%>
<tr>
<td height="60" align="center">
<img src="<%=request.getContextPath() %>/images/common/info-show.jpg"
alt="信息提示" width="158" height="46" align="absmiddle"/>
</td>
</tr>
<%
}else{
%>
<tr>
<td>
<div align='center'>
<img src="<%=request.getContextPath() %>/images/common/form-error.png"
alt="错误提示" width="46" height="46"
align="absmiddle"/><font >系统出错</font>
</div>
</td>
</tr>
<%
}
%>
<tr>
<td >
<div align='center'>
<font color="<%=error?"red":"green"%>"><%= exception.getMessage() %>
<a title="点击查看更详细的信息" href="javascript:showInfo()">>></a></font>
</div>
</td>
</tr>
<tr><td>
<table style="display:none" id="info">
<tr >
<td><pre> <%exception.printStackTrace(new java.io.PrintWriter(out));%></pre></td>
</tr>
</table>
</td></tr>
</table>
</body>
<script>
function showInfo(){
document.getElementById("info").style.display = "";
}
</script>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -