403.jsp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <%@page import="org.springframework.security.access.AccessDeniedException" pageEncoding="UTF-8" isErrorPage="true" %>
  2. <%
  3. String basePath=request.getContextPath();
  4. AccessDeniedException ex=(AccessDeniedException)request.getAttribute("ex");
  5. %>
  6. <html>
  7. <head>
  8. <title>访问拒绝</title>
  9. <style type="text/css">
  10. <!--
  11. .STYLE10 {
  12. font-family: "黑体";
  13. font-size: 36px;
  14. }
  15. -->
  16. </style>
  17. </head>
  18. <body>
  19. <table width="510" border="0" align="center" cellpadding="0" cellspacing="0">
  20. <tr>
  21. <td><img src="<%=basePath%>/qui/libs/icons/error/error_top.jpg" width="510" height="80" /></td>
  22. </tr>
  23. <tr>
  24. <td height="200" align="center" valign="top" background="<%=basePath%>/qui/libs/icons/error/error_bg.jpg">
  25. <table width="80%" border="0" cellspacing="0" cellpadding="0">
  26. <tr>
  27. <td width="34%" align="right"><img src="<%=basePath%>/qui/libs/icons/error/error.gif" width="128" height="128"></td>
  28. <td width="66%" valign="top" align="center">
  29. <table width="100%">
  30. <tr height="25">
  31. <td>
  32. <span class="STYLE10">访问被拒绝</span>
  33. </td>
  34. </tr>
  35. <tr height="70">
  36. <td>
  37. <%=ex.getMessage() %>
  38. </td>
  39. </tr>
  40. <tr height="25">
  41. <td>
  42. <a href="#" onclick="javascript:location.href='<%=basePath%>/logout.do';" target="_top">重 新 登 录</a>
  43. </td>
  44. </tr>
  45. </table>
  46. </td>
  47. </table>
  48. </td>
  49. </tr>
  50. <tr>
  51. <td><img src="<%=basePath%>/qui/libs/icons/error/error_bootom.jpg" width="510" height="32" /></td>
  52. </tr>
  53. </table>
  54. </body>
  55. </html>