struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "El Harouchi, Jaafar [IT]" <jaafar.elharou...@citigroup.com>
Subject RE: Struts-menu
Date Tue, 24 Jun 2003 02:02:52 GMT
The menu repository is stored in the application context.
Look at the plugin (i'm on struts 1.0 so load it through a startup servlet).
What you do on every page is use a tag library to invoke the appropriate
displayer which renders the menu.
What you do store in the session, or wherever is appropriate, is the
PermissionsAdapter.
I don't use the role based permissioning, but load a PermissionsAdapter for
each user, which contains the  ids they have access to from the DB.

Look at the Permissions example at: 
	http://www.raibledesigns.com/struts-menu/index.jsp

The example code is available through:
	http://sourceforge.net/projects/struts-menu/

hth
-jaafar

-----Original Message-----
From: Mykola Ostapchuk [mailto:mykost@sympatico.ca]
Sent: Monday, June 23, 2003 8:19 PM
To: Struts Users Mailing List
Subject: Re: Struts-menu


How can I put menu into session? Which class to modify?
Recreate menu on each page isn't clever - it's always the same.


----- Original Message ----- 
From: "Raible, Matt" <Matt_Raible@cable.comcast.com>
To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
Sent: Monday, June 23, 2003 12:11 PM
Subject: RE: Struts-menu


> 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:mykost@sympatico.ca]
> 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message