Title: Message
If you use the latest code from CVS and the EL-enabled Tag, you can put EL expressions into the "name" attribute.
 
I haven't tried it, but something like the following *should* work:
 
<menu:useMenuDisplayer name="ListMenu" repository="repository">
<c:forEach var="menu" items="${sessionScope.menus}"/>
    <menu:displayMenu name="${menu}"/>
</c:forEach>
</menu:useMenuDisplayer>
 
Where "menus" is a List of Strings in session scope.
 
If it doesn't work, let me know and I can try to help fix it.
 
Matt
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo C. Morais
Sent: Tuesday, March 16, 2004 7:01 AM
To: [EMAIL PROTECTED]
Subject: RES: [struts-menu] dynamic menu in the session

Another thing:
 
The primary options of the menu changes depending of the user.
As I noted in the example we still have to say the name of the First options in the struts tags.
Cant it be dynamic too?
 
 
Thanks
 
 
C.E.S.A.R.
Gustavo Cavalcanti Morais
Engenheiro de Software
Rua Bione, 220
Recife Antigo
Recife - Pernambuco
[EMAIL PROTECTED]
tel:
mobile:
+55 (81) 3425-4576
+55 (81) 8817-7983
Powered by Plaxo Want a signature like this?
-----Mensagem original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Gustavo C. Morais
Enviada em: terça-feira, 16 de março de 2004 10:45
Para: [EMAIL PROTECTED]
Assunto: [struts-menu] dynamic menu in the session

Hi,
 
Is there any way to build the menu once in the login and put it on the session so the pages can just read from it?
 
Thanks.
 
C.E.S.A.R.
Gustavo Cavalcanti Morais
Engenheiro de Software
Rua Bione, 220
Recife Antigo
Recife - Pernambuco
[EMAIL PROTECTED]
tel:
mobile:
+55 (81) 3425-4576
+55 (81) 8817-7983
Powered by Plaxo Want a signature like this?
 

<<ecp_marca.gif>>

Reply via email to