In the SetPermissionsAction, there is:

        PermissionsAdapter permissions = new
SimplePermissionsAdapter(menus);
        request.getSession().setAttribute("exampleAdapter",
permissions);

HTH,

Matt

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bryce
Fischer
Sent: Tuesday, September 23, 2003 7:52 PM
To: [EMAIL PROTECTED]
Subject: [struts-menu] Permissions Menu Example


This may be a stupid question, but I can't seem to get my head around
this.

I downloaded the Struts Menu 1.3, and am trying to take a look at and
understand the example permissionsMenu.jsp.

The menu tag looks like this:

<menu:useMenuDisplayer name='<%=displayer%>' 
        bundle="org.apache.struts.action.MESSAGE"
        permissions="exampleAdapter">
    <menu:displayMenu name="ToDoListMenuFile"/>
    <menu:displayMenu name="ToDoListMenuEdit"/>
    <menu:displayMenu name="Permissions"/> </menu:useMenuDisplayer>

What has me confused is the attribute that says
'permissions="exampleAdapter'>"

Looking in the examples, I can't find any other reference to
exampleAdapter. I presume it refers to
com.fgm.web.menu.example.SimplePermissionsAdapter.class, but how that's
mapped.

Any insight or tips on the permissions examples would be greatly
appreciated.

Thanks.

-- 
Bryce Fischer <[EMAIL PROTECTED]>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf _______________________________________________
struts-menu-user mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/struts-menu-user




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
struts-menu-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/struts-menu-user

Reply via email to