access-error.jsp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <%@ page import="com.techempower.gemini.*, com.techempower.gemini.filters.*" %><%
  2. Integer errorType = (Integer)request.getAttribute("ErrorType");
  3. int type = AccessFilter.ERROR_UNKNOWN;
  4. if (errorType != null)
  5. {
  6. type = errorType.intValue();
  7. }
  8. %><html>
  9. <head>
  10. <title>Access Check Error</title>
  11. <style>
  12. body
  13. {
  14. background-color: white;
  15. color: black;
  16. font-family: Tahoma, Verdana, Arial, Helvetica;
  17. font-size: 12px;
  18. margin: 20px 20px 20px 20px;
  19. }
  20. h2
  21. {
  22. font-size: 16px;
  23. border-bottom: 2px solid #405060;
  24. }
  25. .error
  26. {
  27. border-left: 8px solid #B00810;
  28. padding-left: 6px;
  29. padding-top: 3px;
  30. padding-bottom: 4px;
  31. text-align: justify;
  32. }
  33. .narrow
  34. {
  35. width: 450px;
  36. }
  37. .footer
  38. {
  39. font-size: 10px;
  40. border-top: 1px dotted #DFDFDF;
  41. font-style: italic;
  42. }
  43. a, a:visited
  44. {
  45. color: #800000;
  46. }
  47. </style>
  48. </head>
  49. <body>
  50. <div class="narrow">
  51. <h2>Access Check Error</h2>
  52. <p class="error"><% if (type == AccessFilter.ERROR_NO_ACCESS) {
  53. %>
  54. You have requested content to which you do not have "read" privileges.
  55. Please contact a system administrator if you believe you are seeing this
  56. message in error. You may return to the <a href="/">home page</a>.<%
  57. } else {
  58. %>The system was not able to determine your authorization level. You cannot view the
  59. requested content at this time. Please contact a system administrator for
  60. assistance. You may return to the <a href="/">home page</a>.<% } %>
  61. </p>
  62. <p class="footer">
  63. Gemini (v<%= GeminiConstants.GEMINI_VERSION %>) Access Control Filter
  64. </p>
  65. </div>
  66. </body>
  67. </html>