SecureJSPTaglibs提供了一个用来保护页面内容的标签库,通过判断当前访问者是否具备某种角色来控制页面的内容显示。使用方法:
<secure:oeroles="role1toevaluate,role2toevaluate"> Showthiscotetiftheuserhasoeofthespecifiedroles.</secure:oe><secure:allroles="role1toevaluate,role2toevaluate"> Showthiscotetiftheuserhasallthespecifiedroles.</secure:all><secure:oeroles="role1toevaluate,role2toevaluate"> Showthiscotetiftheuserhasoeofthespecifiedroles.</secure:oe>










评论