首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > secure-taglib

secure-taglib

  • 资源大小:4.52 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

Secure JSP Taglibs Secure JSP Taglibs aims to solve authorization issues on the Java EE presentation layer. It checks whether the currently authenticated user (if any) has been associated with any of the specified security roles. Maven Configuration Add the Maven dependency to your pom.xml file: com.samaxes.taglib secure 1.0.2 Usage Taglib reference First of all you have to reference the taglib in your JSP: <%@ taglib uri="http://www.samaxes.com/taglib/secure" prefix="secure" %> Secure content You can now evaluate the nested body content of the tag in order to check if the user has the roles which grant him access to view its content, use a comma-delimited list to check for multiple ro
VIP VIP
0.165904s