B
Bryan Seaton
I am trying to use the Simple Struts Menu to display a list of links.
I have deployed the struts-menu example and it works fine. The
problem occurs when I try to use it in another app. Everything is
running on WinXP Pro, Tomcat 5, Java1.4.2_05. Example of what I am
seeing:
null **this null is smd.menu.top**
<tr><td class=smd-menu-top>nullSite Admin Tools</td></tr>**this null
is smd.menu.item.image.bullet**
<tr><td class=smd-menu-item><a href="/home.html" class="smd-menu"
target="_self" title="Home"> Home</a></td></tr>
<tr><td class=smd-menu-item><a href="#" class="smd-menu"
target="_self" title="My Account"> My Account</a></td></tr>
<tr><td class=smd-menu-item><a href="/batch.html" class="smd-menu"
target="_self" title="Batch User Import"> Batch User
Import</a></td></tr>
null **this null is smd.menu.bottom**
**snip from menu-config.xml**
<Menu name="GeoSiteAdmin" title="Site Admin Tools">
<Item name="Home" title="Home" toolTip="Home" location="/home.html"/>
<Item name="MyAccount" title="My Account" toolTip="My Account"
location="#"/>
<Item name="BatchImport" title="Batch User Import" toolTip="Batch User
Import" location="/batch.html"/>
</Menu>
**snip from jsp**
<%@ taglib uri="struts-html" prefix="html" %>
<%@ taglib uri="struts-bean" prefix="bean" %>
<%@ taglib uri="struts-logic" prefix="logic" %>
<%@ taglib uri="struts-menu" prefix="menu"%>
<%@ taglib uri="struts-logic-el" prefix="logic-el"%>
<%@ taglib uri="struts-bean-el" prefix="bean-el"%>
<%@ taglib uri="struts-html-el" prefix="html-el"%>
<%@ taglib uri="c" prefix="c"%>
<%@ taglib uri="fmt" prefix="fmt"%>
<table width="90%" cellpadding="0" cellspacing="0" align="center">
<tr><td>
<menu:useMenuDisplayer name="Simple"
config="ApplicationResources"
bundle="org.apache.struts.action.MESSAGE">
<menu:displayMenu name="ToDoListMenuFile"/>
<menu:displayMenu name="GeoSiteAdmin" />
<menu:displayMenu name="ClientAdmin" />
<menu:displayMenu name="ToDoListMenuEdit"/>
</menu:useMenuDisplayer>
</td></tr>
</table>
The properties file and all jars are straight from the struts-menu
example. The only difference between the example and my app is that I
have the jsp's in the WEB-INF and I am using Tiles. It would be
easier if nothing worked but as you can see, some things are null and
some things display fine. Help!
I have deployed the struts-menu example and it works fine. The
problem occurs when I try to use it in another app. Everything is
running on WinXP Pro, Tomcat 5, Java1.4.2_05. Example of what I am
seeing:
null **this null is smd.menu.top**
<tr><td class=smd-menu-top>nullSite Admin Tools</td></tr>**this null
is smd.menu.item.image.bullet**
<tr><td class=smd-menu-item><a href="/home.html" class="smd-menu"
target="_self" title="Home"> Home</a></td></tr>
<tr><td class=smd-menu-item><a href="#" class="smd-menu"
target="_self" title="My Account"> My Account</a></td></tr>
<tr><td class=smd-menu-item><a href="/batch.html" class="smd-menu"
target="_self" title="Batch User Import"> Batch User
Import</a></td></tr>
null **this null is smd.menu.bottom**
**snip from menu-config.xml**
<Menu name="GeoSiteAdmin" title="Site Admin Tools">
<Item name="Home" title="Home" toolTip="Home" location="/home.html"/>
<Item name="MyAccount" title="My Account" toolTip="My Account"
location="#"/>
<Item name="BatchImport" title="Batch User Import" toolTip="Batch User
Import" location="/batch.html"/>
</Menu>
**snip from jsp**
<%@ taglib uri="struts-html" prefix="html" %>
<%@ taglib uri="struts-bean" prefix="bean" %>
<%@ taglib uri="struts-logic" prefix="logic" %>
<%@ taglib uri="struts-menu" prefix="menu"%>
<%@ taglib uri="struts-logic-el" prefix="logic-el"%>
<%@ taglib uri="struts-bean-el" prefix="bean-el"%>
<%@ taglib uri="struts-html-el" prefix="html-el"%>
<%@ taglib uri="c" prefix="c"%>
<%@ taglib uri="fmt" prefix="fmt"%>
<table width="90%" cellpadding="0" cellspacing="0" align="center">
<tr><td>
<menu:useMenuDisplayer name="Simple"
config="ApplicationResources"
bundle="org.apache.struts.action.MESSAGE">
<menu:displayMenu name="ToDoListMenuFile"/>
<menu:displayMenu name="GeoSiteAdmin" />
<menu:displayMenu name="ClientAdmin" />
<menu:displayMenu name="ToDoListMenuEdit"/>
</menu:useMenuDisplayer>
</td></tr>
</table>
The properties file and all jars are straight from the struts-menu
example. The only difference between the example and my app is that I
have the jsp's in the WEB-INF and I am using Tiles. It would be
easier if nothing worked but as you can see, some things are null and
some things display fine. Help!