Posted By:
R_Kannan
Posted On:
Saturday, September 4, 2004 11:03 PM
hi, I need to display dynamic Menus according to the User who logs in based on his Role. I am implementing the above functionality in the following way , Authenticating the Username & password throgh LDAP , Once Authorised ,LDAP will fetch the role id for that User and put it in Session, In my MainMenu.jsp & all SubMenu.jsp , I will retreive the roleid from the Session , and then I am a writing a logic to decide whether the current role is eligible to see all or partial or no links inside MainMenu.jsp & each SubMenu.jsp . Wants to know if there are any feature in Struts to implement the
More>>
hi,
I need to display dynamic Menus according to the
User who logs in based on his Role.
I am implementing the above functionality in the following way ,
- Authenticating the Username & password throgh LDAP ,
- Once Authorised ,LDAP will fetch the role id for that User and put it in Session,
- In my MainMenu.jsp & all SubMenu.jsp , I will retreive the roleid from the Session ,
-
and then I am a writing a logic to decide whether the current role is eligible to see
all
or
partial
or
no links
inside MainMenu.jsp & each SubMenu.jsp .
Wants to know
if there are any feature in Struts to implement the same ,something like a configurable file to map each Role versus Menus
or
please specify better ways to handle this
?
Thanks,
Ranga.R
<<Less