开发者

Dynamic Menu population based on role and permission

Hope all doing well. In my java project i have to populate dynamic menu based on user role and permission. Could any one help me with code or tips to get the need.Thanks in advance开发者_运维知识库.. I am using java, spring2.5,and mysql database....

Thanks...


Use Spring Security. Like all other Spring modules, you would simply configure the framework declaratively using XML (for defining roles etc.) and so it's quite flexible.

Spring Security comes with its own tag library that you would then use to secure your HTML elements. For example, to make a menu item available for Admin roles only just wrap it in an appropriate tag.

Access this website to see more: http://www.springsource.org/features/security

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜