%@ page contentType="text/html;charset=UTF-8" isErrorPage="true"%>
<%@ page import="org.apache.commons.logging.LogFactory"%>
<%@ include file="/common/taglibs.jsp"%>
<%if (exception != null) //from JSP
{
//Exception from JSP didn't log yet ,should log it here.
String requestUri = (String) request
.getAttribute("javax.servlet.error.request_uri");
LogFactory.getLog(requestUri).error(exception.getMessage(),
exception);
} else if (request.getAttribute("exception") != null) //from Spring
{
exception = (Exception) request.getAttribute("exception");
}
%>
系统运行期错误:
<%=exception.getMessage()%>
开发人员点击此处获取详细错误信息
<%exception.printStackTrace(new java.io.PrintWriter(out));%>