Secure JSP Taglibs
Secure JSP Taglibs 提供了一個用來保護(hù)頁面內(nèi)容的標(biāo)簽庫,通過判斷當(dāng)前訪問者是否具備某種角色來控制頁面的內(nèi)容顯示。使用方法:
<secure:one roles="role1toevaluate, role2toevaluate">
Show this content if the user has one of the specified roles.
</secure:one>
<secure:all roles="role1toevaluate, role2toevaluate">
Show this content if the user has all the specified roles.
</secure:all>
<secure:none roles="role1toevaluate, role2toevaluate">
Show this content if the user has none of the specified roles.
</secure:none>
評論
圖片
表情
