error.jsp.svn-base

来自「本人编写的基于spring + spring mvc + hibernate架构」· SVN-BASE 代码 · 共 50 行

SVN-BASE
50
字号
<%@ page contentType="text/html;charset=UTF-8" isErrorPage="true"%>
<%@ include file="/WEB-INF/pages/include.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
	<head>
		<title><fmt:message key="error.title" />
		</title>
	</head>
	<body>
		<h3>
			<fmt:message key="error.title" />
		</h3>
		<div>
			<pre>
<%
	Exception ex = (Exception) request.getAttribute("exception");
	if (ex != null) {
		if (ex instanceof org.springframework.core.NestedRuntimeException) {
			org.springframework.core.NestedRuntimeException tmpEx = (org.springframework.core.NestedRuntimeException) ex;
			Throwable nestedEx = tmpEx.getCause();
			ex.printStackTrace(new java.io.PrintWriter(out));
			out.println("<hr/>");
			nestedEx.printStackTrace(new java.io.PrintWriter(out));
		} else {
			ex.printStackTrace(new java.io.PrintWriter(out));
		}
	}
%>
</pre>
			<hr />
			<pre>
<%
		if (exception != null) {
		if (exception instanceof org.springframework.orm.ObjectRetrievalFailureException) {
%>
<fmt:message key="error.object.retrieval" />
<%
			} else {
			exception.printStackTrace(new java.io.PrintWriter(out));
		}
	}
%>
</pre>
		</div>
	</body>
</html>

⌨️ 快捷键说明

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