You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by mo...@dit.unitn.it on 2003/03/14 15:10:49 UTC

Struts Menu

Hi i've a simple question:
there is a possibility to add parameter at link created with Struts Menu? for
example i've an Action that add an attribute to request, i would like that this
attribute is added to link generated from Struts Menu..it's possible?

example of code:

<script language="JavaScript1.2" src="scripts/coolmenus3.js"></script>
<script src="scripts/menu-config.js"></script>
<menu:useMenuDisplayer name="mymenu" bundle="org.apache.struts.action.MESSAGE">
   <menu:displayMenu name="list"/>
</menu:useMenuDisplayer>

and in menu-config i've
<?xml version="1.0" encoding="UTF-8" ?>
<MenuConfig>
<Displayers>
<Displayer   name="mymenu" type="com.fgm.web.menu.displayer.CoolMenuDisplayer"/>
</Displayers>
<Menus>
<Menu  name="list"  title="FILE"  description="test">
 <Item    name="TDLexit"  title="EXIT" location="index.jsp"/>
<Item    name="TDLexit"  title="EXIT" location="index.jsp"/>
</Menu>
</Menus>
</MenuConfig>

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