⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.jsp

📁 Java开发的权限管理的例子
💻 JSP
字号:
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %>
<html>
<body>
<h1>Secure Page</h1>
This is a protected page. You can get to me if you've been remembered,
or if you've authenticated this session.

<p><a href="../index.jsp">Home</a>
<!-- com.gsta.bnet.bizservice.BizDelegateIF.findContactPersonList 为Function的名字 -->
<auth:auth ifAnyGranted="com.gsta.bnet.bizservice.BizDelegateIF.findContactPersonList">
<p><a href="<%=request.getContextPath()%>/contactPerson.do?myaction=findContactPersonList">联系人列表</a>
</auth:auth>
<auth:auth ifNotGranted="com.gsta.bnet.bizservice.BizDelegateIF.findContactPersonList">
<p>该用户没有com.gsta.bnet.bizservice.BizDelegateIF.findContactPersonList Function
</auth:auth>
<auth:auth ifAnyGranted="func_user">
  <p>该用户拥有func_user Function
</auth:auth>
<p><a href="../../j_acegi_logout">Logout</a>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -