error_page.jsp 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <%@ page language="java" contentType="text/html;charset=UTF-8"
  2. isELIgnored="false"%>
  3. <%@ taglib uri="/struts-tags" prefix="s"%>
  4. <%--
  5. //必须set html status 200
  6. response.setStatus(200);
  7. --%>
  8. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  9. <html>
  10. <head>
  11. <title>错误页面</title>
  12. </head>
  13. <link href="css/errorPage/css/add.css" rel="stylesheet" type="text/css" />
  14. <%@include file="/WEB-INF/include/common.jsp"%>
  15. <script src="script/loadingMask/modalDialog.js" type="text/javascript"></script>
  16. <script type="text/javascript">
  17. $(function() {
  18. $("#back").click(function() {
  19. window.history.go(-1);
  20. });
  21. $("#close").click(function() {
  22. window.close();
  23. });
  24. if (typeof window.dialogArguments == "undefined") {
  25. $("#back").css("display", "block");
  26. $("#close").css("display", "none");
  27. $("#relogin").click(function() {
  28. window.top.location.href = "userlogout.action";
  29. });
  30. } else {
  31. $("#back").css("display", "none");
  32. $("#close").css("display", "block");
  33. $("#relogin").click(function() {
  34. var _rv = new Object();
  35. _rv.errorFlag = true;
  36. window.returnValue = _rv;
  37. window.close();
  38. });
  39. }
  40. });
  41. </script>
  42. <body>
  43. <table border="0" align="center" cellpadding="0" cellspacing="0">
  44. <tr>
  45. <td class="errot_bg">
  46. <table width="80%" border="0" align="center" cellpadding="0"
  47. cellspacing="0" class="error">
  48. <tr>
  49. <td width="80%" style="align: center"><font color="blue">
  50. <script type="text/javascript">
  51. <s:if test="exception.message == 'session.invalid'">
  52. window.top.location = '${ctx }/login.action';
  53. </s:if>
  54. </script>
  55. <strong><s:property value="exception.message" /></strong>
  56. </font>
  57. </td>
  58. </tr>
  59. <tr style="height: 1px">
  60. <td>&nbsp;<br>
  61. </td>
  62. </tr>
  63. <%-- <tr>--%>
  64. <%-- <th>您可以尝试以下操作:</th>--%>
  65. <%-- </tr>--%>
  66. <%-- <tr>--%>
  67. <%-- <td height="90"><table width="70%" border="0" align="right" cellpadding="0" cellspacing="0" >--%>
  68. <%-- <tr>--%>
  69. <%-- <td width="69%" align="center"><img id="back" src="images/houtui.gif" width="69" height="26" style="cursor: pointer;"/></td>--%>
  70. <%-- <td width="31%" align="center"><img id="relogin" src="images/chongxindenglu.gif" width="69" height="26" style="cursor: pointer;"/></td>--%>
  71. <%-- </tr>--%>
  72. <%-- </table></td>--%>
  73. <%-- </tr>--%>
  74. </table>
  75. </td>
  76. </tr>
  77. </table>
  78. </body>
  79. </html>