error-business.jsp 713 B

12345678910111213141516171819
  1. <%@ page contentType="text/html; charset=UTF-8"%>
  2. <%
  3. String path = request.getContextPath();
  4. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  5. %>
  6. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  7. <html>
  8. <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Exception!</title></head>
  9. <body>
  10. <img src="<%=basePath %>/resource/images/error.png"></img>
  11. <% Exception e = (Exception)request.getAttribute("exception"); %>
  12. <H2>业务错误: <%= e.getClass().getSimpleName()%></H2>
  13. <hr />
  14. <P>错误描述:</P>
  15. <%= e.getMessage()%>
  16. <P>错误信息:</P>
  17. <% e.printStackTrace(new java.io.PrintWriter(out)); %>
  18. </body>
  19. </html>