The easiest thing to do is to use container-managed authentication - i.e.
Tomcat's JDBCRealm.  Since you'll have to hard-code your roles in web.xml -
why not code them in menu-config.xml as well.

Of course, you could allow all roles by using * in web.xml.  This is the way
I've done it and it might take a bit to setup, but who has permissions to
see what on a menu rarely changes (at least not on my projects).

HTH,

Matt

-----Original Message-----
From: Mykola Ostapchuk [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 10:07 AM
To: Struts Users Mailing List
Subject: Struts-menu


Hello,

I couldn't get any response from Struts-menu mail list, so I'm wandering if
somebody here could help me.
I'm new to struts-menu. I want to create a role-based expandable menu. I
have an existing system with Roles DB table.
How can I specify menu permissions for particular Role and save it to
menu-config.xml?
Does anybody has any examples?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to