Hmmm, I've never seen that one before. Can you try the sample app and see if the xtree works on your server with that example?
Matt > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Andre Zerbinatti > Sent: Monday, July 19, 2004 11:39 AM > To: struts-menu-user > Subject: [struts-menu] Problem with xtree - Velocity!!! > > > Hello all!!! > > I am having a strange problem trying > to integrate Struts-Menu with my > application... I am trying to use the > XTree menu, and when I forward to the > JSP which have the tree, I got this > exception: > > javax.servlet.ServletException: org/apache/velocity/context/Context > at > org.apache.jasper.runtime.PageContextImpl.handlePageException( > PageContextImpl.java:536) > at > org.apache.jsp.ctga_hierarchy_viewgraphic_jsp._jspService(ctga _hierarchy_viewgraphic_jsp.java:77) > at > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.jasper.servlet.JspServletWrapper.service(JspServlet > Wrapper.java:210) > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet > .java:295) > at > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationDispatcher.invoke(Applicat > ionDispatcher.java:684) > at > org.apache.catalina.core.ApplicationDispatcher.doForward(Appli > cationDispatcher.java:432) > at > org.apache.catalina.core.ApplicationDispatcher.forward(Applica > tionDispatcher.java:356) > at > org.apache.struts.action.RequestProcessor.doForward(RequestPro > cessor.java:1069) > at > org.apache.struts.action.RequestProcessor.processForwardConfig > (RequestProcessor.java:455) > at > org.apache.struts.action.RequestProcessor.process(RequestProce > ssor.java:279) > > > > > > First I configured my > struts-config.xml (the path is correct): > > <!-- Struts Menu Plugin --> > <plug-in > className="net.sf.navigator.menu.MenuPlugIn"> > <set-property > property="menuConfig" > value="/WEB-INF/conf/menu-config.xml"/> > </plug-in> > > > > Then I configured my menu-config.xml: > > <?xml version="1.0" > encoding="ISO-8859-1"?> > <!-- Copyright (c) 2004 Kaffa Software > Consulting. Todos os Direitos > Reservados --> > > > <MenuConfig> > <Displayers> > <Displayer name="DropDown" > > type="net.sf.navigator.displayer.DropDownMenuDisplayer"/> > <Displayer name="Simple" > > type="net.sf.navigator.displayer.SimpleMenuDisplayer"/> > <Displayer name="CoolMenu" > > type="net.sf.navigator.displayer.CoolMenuDisplayer"/> > <Displayer name="CoolMenu4" > > type="net.sf.navigator.displayer.CoolMenuDisplayer4"/> > <Displayer name="MenuForm" > > type="net.sf.navigator.example.PermissionsFormMenuDisplayer"/> > <Displayer name="ListMenu" > > type="net.sf.navigator.displayer.ListMenuDisplayer"/> > <Displayer name="TabbedMenu" > > type="net.sf.navigator.displayer.TabbedMenuDisplayer"/> > <Displayer name="Velocity" > > type="net.sf.navigator.displayer.VelocityMenuDisplayer"/> > </Displayers> > > <Menus> > <Menu name="ToDoListMenuFile" > title="FILE" description="test" > width="50"> > <Item name="TDLnew" title="NEW"> > <Item name="TDLnewcase" > title="CASE" > image="images/case-new.png" > location="NewCase.jsp"/> > <Item name="TDLnewitem" > title="ITEM" > image="images/item-new.png" > location="index.jsp"/> > <Item name="TDLnewparty" > title="PARTY" > image="images/party-new.png" > location="index.jsp"/> > </Item> > <Item name="TDLopen" > title="OPEN"> > <Item name="TDLopencase" > title="CASE" > image="images/case-open.png" > location="index.jsp"/> > <Item name="TDLopenitem" > title="ITEM" > image="images/item-open.png" > location="index.jsp"/> > <Item name="TDLopenparty" > title="PARTY" > image="images/party-open.png" > location="index.jsp"/> > </Item> > <Item name="TDLexit" > title="EXIT" > image="images/exit.png" > location="index.jsp"/> > </Menu> > </Menus> > > </MenuConfig> > > > > > And the JSP: > > <script type="text/javascript"> > > <menu:useMenuDisplayer > name="Velocity" > > config="/WEB-INF/velocity/templates/xtree.html" > > > bundle="org.apache.struts.action.MESSAGE"> > > if (document.getElementById) { > <menu:displayMenu > name="ToDoListMenuFile"/> > } else { > var msg = "Your > browser does not support > document.getElementById().\n"; > msg += "You must use a > modern browser for this graphic."; > alert(msg); > } > > </menu:useMenuDisplayer> > > </script> > > > Anyone knows what is happening??? I > followed every step of the main Struts > Menu page, and I wasnt able to solve > this problem!!! > > > > Thanks a lot!!! > > > Andre Zerbinatti > > ______________________________________________________________ > ____________ > Acabe com aquelas janelinhas que pulam na sua tela. > AntiPop-up UOL - � gr�tis! > http://antipopup.uol.com.br/ > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idG21&alloc_id040&op�k _______________________________________________ struts-menu-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/struts-menu-user ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idG21&alloc_id040&op=click _______________________________________________ struts-menu-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/struts-menu-user
