accessdenied.jsp
来自「anewssystem新闻发布系统集成使用了spring hibernate f」· JSP 代码 · 共 28 行
JSP
28 行
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/inc/taglibs.jsp"%>
<%--
<%@ page import="org.acegisecurity.context.SecurityContextHolder" %>
<%@ page import="org.acegisecurity.Authentication" %>
<%@ page import="org.acegisecurity.ui.AccessDeniedHandlerImpl" %>
<h1>Sorry, access is denied</h1>
<p>
<%= request.getAttribute(AccessDeniedHandlerImpl.ACEGI_SECURITY_ACCESS_DENIED_EXCEPTION_KEY)%>
<p>
<%
Authentication auth = SecurityContextHolder.getContext().getAuthentication();
if (auth != null) {
%>
Authentication object as a String: <%= auth.toString() %><BR><BR>
<%
}
%>
--%>
<h1>对不起,您没有权限访问。</h1>
<a href="javascript:history.back()">返回</a>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?