Is your menu-config.xml located at WEB-INF/menu-config.xml? If so, it should work. The only reason it might not be working is because of some XML parsing error - can you verify the file has valid XML?
Matt On 6/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I removed the entry from my applicationContext.xml and added the listener > you gave below to my web.xml and got the same result as before. "No menu in > repository with name: C No menu in repository with name: CaseDetailMenuCase > " > > Even if this does not work, thank you for the fast responses! > > -Seth > > > > On 6/19/07, Matt Raible <[EMAIL PROTECTED]> wrote: > > I haven't tested the Spring support in a while - maybe it's broken? > > You might try using a listener in your web.xml instead: > > > > <listener> > > > <listener-class>net.sf.navigator.menu.MenuContextListener</listener-class> > > </listener> > > > > Matt > > > > On 6/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > If I am not responding to this correctly, please let me know. > > > > > > Yes on the commons-lang-2.1.jar. > > > I have everything from the WEB-INF\lib folder of the sample > > > struts-menu-2.4.3 project in my WEB-INF\lib folder. > > > > > > I do not have a struts-config.xml, but I am using Spring, so I put this > in > > > my applicationContext.xml: > > > <bean id="menu" > class="net.sf.navigator.menu.MenuLoader"> > > > <property name="menuConfig" value="/WEB-INF/menu-config.xml"/> > > > </bean> > > > > > > > > > pageOne.jsp: > > > <%@ taglib prefix="s" uri="/struts-tags" %> > > > <%@ taglib uri="http://struts-menu.sf.net/tag " prefix="menu" %> > > > <html> > > > <head> > > > <title>Page One</title> > > > </head> > > > <body> > > > <menu:useMenuDisplayer name="TabbedMenu" > > > bundle="org.apache.struts.action.MESSAGE"> > > > <menu:displayMenu name="C"/> > > > <menu:displayMenu name="CaseDetailMenuCase"/> > > > </menu:useMenuDisplayer> > > > <p>Page one.</p> > > > </body> > > > </html> > > > > > > menu-config.xml : > > > <?xml version="1.0" encoding="UTF-8" ?> > > > <MenuConfig> > > > <Displayers> > > > <Displayer name="TabbedMenu" > > > type="net.sf.navigator.displayer.TabbedMenuDisplayer"/> > > > <Displayer name="CoolMenu" > > > type="net.sf.navigator.displayer.CoolMenuDisplayer "/> > > > <Displayer name="CSSListMenu" > > > type="net.sf.navigator.displayer.CSSListMenuDisplayer > "/> > > > </Displayers> > > > <!-- ==================== Case View Menus =========================== > --> > > > <!-- FILE --> > > > <Menu name="C" title="FILE" description="test"> > > > <Item name="CDnew" title="NEW"> > > > <Item name="CDnewcase" title="CASE" image="images/case- new.png" > > > location="index.jsp"/> > > > <Item name="CDLnewitem" title="ITEM" image="images/item- new.png" > > > location="index.jsp"/> > > > <Item name="CDnewparty" title="PARTY" image="images/party- new.png" > > > location="index.jsp"/> > > > </Item> > > > <Item name="CDopen" title="OPEN"> > > > <Item name="CDopencase" title="CASE" image="images/case- open.png" > > > location="index.jsp"/> > > > <Item name="CDopenitem" title="ITEM" image="images/item- open.png" > > > location="index.jsp"/> > > > <Item name="CDopenparty" title="PARTY" image="images/party- open.png" > > > location="index.jsp"/> > > > </Item> > > > <Item name="CDclose" title="CLOSE" location=" index.jsp"/> > > > <Item name="CDexit" title="EXIT" > > > image="images/exit.png" location="index.jsp"/> > > > </Menu> > > > <!-- EDIT --> > > > <Menu name="CaseDetailMenuEdit" title="EDIT"> > > > <Item name="CDundo" title="UNDO" image="images/undo.png"/> > > > <Item name="CDcut" title="CUT" image="images/cut.png"/> > > > <Item name="CDcopy" title="COPY" image="images/copy.png"/> > > > <Item name="CDpaste" title="PASTE" image="images/paste.png"/> > > > <Item name="CDclear" title="CLEAR" image="images/clear.png"/> > > > <Item name="CDselect" title="CLEAR" image="images/select- all.png"/> > > > <Item name="CDprefs" title="USER_PREFERENCES" image="images/prefs.png"/> > > > </Menu> > > > <!-- CASE --> > > > <Menu name="CaseDetailMenuCase" title="CASE"> > > > <Item name="CDadd" title="ADD"> > > > <Item name="CDaddparty" title="PARTY" image="images/party-add.png"/> > > > <Item name="CDadditem" title="ITEM" image="images/item- add.png"/> > > > <Item name="CDaddcomments" title="COMMENTS" > image="images/comments.png"/> > > > <Item name="CDadddoc" title="DOCUMENTS" image="images/documents.png"/> > > > <Item name="CDaddposition" title="POSITION" > image="images/positions.png"/> > > > </Item> > > > <Item name="CDopen" title="OPEN"> > > > <Item name="CDopenparty" title="PARTY" image="images/party- open.png"/> > > > <Item name="CDopenitem" title="ITEM" image="images/item-open.png"/> > > > <Item name="CDopencomments" title="COMMENTS" > image="images/comments.png"/> > > > <Item name="CDopendoc" title="DOCUMENTS" image="images/documents.png"/> > > > <Item name="CDopenposition" title="POSITION" > image="images/positions.png"/> > > > <Item name="CDopenhistory" title="HISTORY" image="images/history.png"/> > > > </Item> > > > <Item name="CDassign" title="ASSIGN" image="images/assign.png"/> > > > <Item name="CDactivate" title="ACTIVATE" image="images/activate.png"/> > > > <Item name="CDpublish" title="PUBLISH" image="images/case-pub.png"/> > > > <Item name="CDescalate" title="ESCALATE" image="images/escalate.png"/> > > > <Item name="CDdecide" title="DECIDE" image="images/decide.png"/> > > > <Item name="CDgenlicen" title="GENERATE_LICENSE" > > > image="images/genlicense.png"/> > > > </Menu> > > > </MenuConfig> > > > > > > Thanks, > > > Seth > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > struts-menu-user mailing list > > > [email protected] > > > > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > > > > > > > > > > > -- > > http://raibledesigns.com > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > struts-menu-user mailing list > > [email protected] > > > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > struts-menu-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > -- http://raibledesigns.com ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ struts-menu-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/struts-menu-user
