error.jsp 918 B

12345678910111213141516171819202122232425
  1. <%@ page contentType="text/html; charset=utf-8" isErrorPage="true"%>
  2. <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
  4. <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
  5. <%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
  6. <%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
  7. <c:set var="basePath" value="${pageContext.request.contextPath}"/>
  8. <!DOCTYPE html>
  9. <html>
  10. <head>
  11. <meta charset="utf-8"/>
  12. <title><spring:message code="error"/></title>
  13. </head>
  14. <body>
  15. <% Exception e = null != exception ? (Exception) exception : (Exception)request.getAttribute("ex"); %>
  16. <h2>错误: <%= e.getClass().getSimpleName()%></h2>
  17. <hr />
  18. <h5>错误描述:</h5>
  19. <%= e.getMessage()%>
  20. <h5>错误信息:</h5>
  21. <pre>
  22. <% e.printStackTrace(new java.io.PrintWriter(out)); %>
  23. </pre>
  24. </body>
  25. </html>