edi_error_page.jsp 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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/ediCommon.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 }/ediLogin.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. </table>
  64. </td>
  65. </tr>
  66. </table>
  67. </body>
  68. </html>