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(JspServletWrapper.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(ApplicationDispatcher.java:684)
        at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
        at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
        at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
        at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.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=click
_______________________________________________
struts-menu-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/struts-menu-user

Reply via email to