You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vicky <ja...@yahoo.com> on 2005/07/14 12:41:06 UTC
what's wrong with this simple code
I don't see anything displayed on jsp with below
simple code in my struts action class.
MenuComponent mc = new MenuComponent();
mc.setName("Menu 1");
mc.setLocation("Menu 1");
mc.setTitle("Menu 1");
MenuComponent mc2 = new MenuComponent();
mc2.setName("Menu 2");
mc2.setLocation("Menu 2");
mc2.setTitle("Menu 3");
mc2.setParent(mc);
repository.addMenu(mc);
session.setAttribute("changeMgmtRepository",
repository);
///jsp
all required tag libs, imports in jsp and below code.
<body>
<div class="dynamicMenu tree">
<menu:useMenuDisplayer name="ListMenu"
repository="changeMgmtRepository">
<c:forEach var="menu" items="${repository.topMenus}">
<menu-el:displayMenu name="${menu.name}"/>
</c:forEach>
</menu:useMenuDisplayer>
</div>
</body>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org