%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="/WEB-INF/jsp/include.jsp"%>
内部错误
<%
try
{
// The Servlet spec guarantees this attribute will be available
Throwable exception = (Throwable) request
.getAttribute("javax.servlet.error.exception");
if (exception != null)
{
//out.println("错误信息(查看系统日志获取更多):" + exception.getMessage());
request.setAttribute("exception", "错误信息(查看系统日志获取更多):" + exception.getMessage());
}
else
{
//out.println("
无具体错误信息.");
request.setAttribute("exception", "无具体错误信息.");
}
// Display cookies
//out.println("
当前的Cookies:");
//Cookie[] cookies = request.getCookies();
//if (cookies != null)
//{
//for (int i = 0; i < cookies.length; i++)
// {
// out.println(cookies[i].getName() + "=[" + cookies[i].getValue() + "]");
// }
// }
}
catch (Exception ex)
{
ex.printStackTrace(new java.io.PrintWriter(out));
}
%>
${fn:escapeXml(exception) }