error.jsp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3. <%
  4. String path = request.getContextPath();
  5. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  6. %>
  7. <!DOCTYPE html>
  8. <html lang="en">
  9. <head>
  10. <meta charset="utf-8" />
  11. <base href="<%=basePath%>">
  12. <title>应用程序异常 (500)</title>
  13. <script type="text/javascript" src="static/js/jquery-1.7.2.js"></script>
  14. <style type="text/css">
  15. body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
  16. div.dialog {
  17. width: 80%;
  18. padding: 1em 4em;
  19. margin: 4em auto 0 auto;
  20. border: 1px solid #ccc;
  21. border-right-color: #999;
  22. border-bottom-color: #999;
  23. }
  24. h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
  25. </style>
  26. </head>
  27. <body>
  28. <div class="dialog" id="zhongxin">
  29. <h1>应用程序异常</h1>
  30. <p>抱歉!您访问的页面出现异常,请稍后重试或联系管理员。</p>
  31. <p><a href="javascript:showErr();">详 情</a>
  32. <a href="javascript:history.back(-1)">返 回</a>
  33. </p>
  34. <div style="display:none;text-align: left;" id="err">${exception }</div>
  35. </div>
  36. <script type="text/javascript">
  37. $(top.hangge());
  38. function showErr(){
  39. document.getElementById("err").style.display = "";
  40. }
  41. </script>
  42. </body>
  43. </html>