阅读背景:

基于Spring角色的安全性+来自员工数据库+单点登录的角色

来源:互联网 

I need to hide navigation in a jsp page using the role of the employee logged in. The application is logged in using single sign on. I will be getting only username of the user from another application using which i will search in the database to get the employee details. I have a role column in the employee table which i am currently using in javascript to show and hide navigation. How can i set spring security role and use in jsp tag like "hasRole('anyROle'), to show or hide navigation. I have a entity employee which will be used to get data from database, so how can i create authorities using this.I need to hide navigation in a jsp page using t




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: