81,092
社区成员
发帖
与我相关
我的任务
分享
Exception e = null;
if(exception != null) {
e = (Exception)exception;
} else if(request.getAttribute("exception") != null) {
e = (Exception)request.getAttribute("exception");
} else if(request.getAttribute("javax.servlet.error.exception") != null) {
e = (Exception)request.getAttribute("javax.servlet.error.exception");
} else if(request.getAttribute("javax.servlet.jsp.jspException") != null) {
e = (Exception)request.getAttribute("javax.servlet.jsp.jspException");
}