[jboss-user] [Beginners Corner] - Restricting User View based on role

rc0nn3ll do-not-reply at jboss.com
Mon Jun 25 18:39:53 EDT 2007


hi,

i am looking to build a webapp whereby upon successful login, the user is displayed a main menu page.
The complete menu will consist of say 10 links to various sections, however not all users will have visibility to the complete menu. 
Say users with role = 'admin' will see all, but those with role = 'student' will only see 7 of them. 
What is the best way to check within my JSF page & display the link if role of user permits them visibility.
Of course, if the user attempts to directly access the url of one of the links he/she should not have visibility of they will be prompted with login & subsequently refused access.

any thoughts as to the best possible solution for this would be greatly appreciated.

thanks

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057518#4057518

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057518



More information about the jboss-user mailing list