汇联通执法队后台管理系统
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

uncaughtException.jsp 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!DOCTYPE html>
  2. <%@ page contentType="text/html;charset=utf-8"%>
  3. <%@ include file="/WEB-INF/jsp/include.jsp"%>
  4. <html>
  5. <head>
  6. <title>内部错误</title>
  7. <link rel="stylesheet" type="text/css" href="${rootUrl }css/main.css" />
  8. </head>
  9. <body>
  10. <br/><br/><br/><br/><br/>
  11. <div align="center"><img src="${rootUrl }images/500/500-2.jpg"></img></div>
  12. <br/>
  13. <div align="center" style="color: red;font-size: 18px">
  14. <%
  15. try
  16. {
  17. // The Servlet spec guarantees this attribute will be available
  18. Throwable exception = (Throwable) request
  19. .getAttribute("javax.servlet.error.exception");
  20. if (exception != null)
  21. {
  22. //out.println("错误信息(查看系统日志获取更多):" + exception.getMessage());
  23. request.setAttribute("exception", "错误信息(查看系统日志获取更多):" + exception.getMessage());
  24. }
  25. else
  26. {
  27. //out.println("<br/>无具体错误信息.");
  28. request.setAttribute("exception", "无具体错误信息.");
  29. }
  30. // Display cookies
  31. //out.println("<br/>当前的Cookies:");
  32. //Cookie[] cookies = request.getCookies();
  33. //if (cookies != null)
  34. //{
  35. //for (int i = 0; i < cookies.length; i++)
  36. // {
  37. // out.println(cookies[i].getName() + "=[" + cookies[i].getValue() + "]");
  38. // }
  39. // }
  40. }
  41. catch (Exception ex)
  42. {
  43. ex.printStackTrace(new java.io.PrintWriter(out));
  44. }
  45. %>
  46. ${fn:escapeXml(exception) }
  47. </div>
  48. <br/>
  49. <div align="center"><a href="javascript:void(0)" onclick="javascript:history.back();return false;">返回上一页</a></div>
  50. </body>
  51. </html>