I've cc'd the struts-menu-user list so more folks can get a look at your issue. You might try setting locations in you menu-config.xml - either with "location", "page", "forward", or "action".

HTH,

Matt

On Tuesday, September 30, 2003, at 07:30 AM, CHALISSARY DAVID wrote:

Sorry for being a pain. I just added all the files that's include with this simple menu. Could you pinpoint where the error could be.

�

+++++++++++++++++++++++++++++ struts-config� +++++++++++++++++++++++++++++++++

�

<struts-config>

�

� <!-- ========== Form Bean Definitions =================================== -->

� <form-beans>

�

��� <!-- Logon form bean -->

��� <form-bean����� name="bogus"

������������������� type="org.apache.struts.action.DynaActionForm">

����� <form-property name="foo"� type="java.lang.String"/>

��� </form-bean>

�

� </form-beans>

�

<!-- ========== Message Resources Definitions =========================== -->

�

� <message-resources� parameter="TrackerRes"/>

� <message-resources� parameter="ISOCodeRes" key="ISOCodeRes"/>

�

�

� <!-- ========== Plug Ins Configuration ================================== -->

�

� <plug-in className="com.fgm.web.menu.MenuPlugIn">

��� <set-property property="menuConfig" value="/WEB-INF/menu-config.xml"/>��

� </plug-in>

�

�

</struts-config>

�

++++++++++++++++++++++++++ Menu-config file +++++++++++++++++++++++++++++

�

<MenuConfig>

� <Displayers>

���� <Displayer� name="TabbedMenu"

���������������� type="com.fgm.web.menu.displayer.TabbedMenuDisplayer"/>

� </Displayers>

�

� <Menus>

��� <Menu name="SimpleHome" title="Home" />

��� <Menu name="SimpleAbout" title="About">�������

������� <Item name="People" title="People"/>������

������� <Item name="Careers" title="Careers"/>����

������� <Item name="Press" title="Press"/>��������

������� <Item name="Locations" title="Locations"/>

��� </Menu>����������

��� <Menu name="SimpleExit" title="Exit" />���������

� </Menus>

�

</MenuConfig>

�

++++++++++++++++++++++++++++++the Jsp +++++++++++++++++++++++++++++++++++++

�

<menu:useMenuDisplayer name="SimpleMenu"

���� bundle="org.apache.struts.action.MESSAGE">>

��� <menu:displayMenu name="SimpleHome"/>

��� <menu:displayMenu name="SimpleAbout"/>�

��� <menu:displayMenu name="SimpleExit"/>

</menu:useMenuDisplayer>

�

++++++++++++++++++++++++++++++resource config ++++++++++++++++++++++++++++++++++

�

<resource-config>

�

� <loadable-resources>

���� <resource name="com.fgm.web.menu.MENU_REPOSITORY"

�������������� loadParam="/WEB-INF/menu-config.xml"

�������������� type="com.fgm.web.menu.MenuRepository"/>

� </loadable-resources>�

�

</resource-config>

�

the directory structure under web-apps being simple-menu under which is WEB-INF and under it is lib

and in WEB-INF it is - menu-config, resource-config, struts-config, web.xml and the two tld files

struts-html.tld, �struts-menu.tld and finally in the lib directory �the two libraries struts and the struts-menu jar files.

And the jsp file under simple-menu

�

Thanks for the help.

�

Regards,

�

----------------------------------------------------------------------

David Chalissary

Software Developer

Tel:��������� +353 1 216 2814

Fax: ������� +353 1 216 2077

�

Siemens Business Services

Fitzwilliam Court,

Leeson Close,

Dublin 2,

Ireland.

mailto:[EMAIL PROTECTED]

http://www.sbs.ie

This e-mail contains confidential information and is for the exclusive use of the addressee/s.� If you are not the addressee, then any distribution, copying or use of this e-mail is prohibited.� If received in error, please advise the sender and delete it immediately.� We accept no liability for any loss or damage suffered by any person arising from use of this e-mail.

�

�

-----Original Message-----
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: 30 September 2003 13:39
To: CHALISSARY DAVID
Subject: RE: [Struts-menu-devel] Re: Unable to load tag handler

�

You need to configure the struts-menu plugin in your struts-config.xml.�

�

� <plug-in className="com.fgm.web.menu.MenuPlugIn">
��� <set-property property="menuConfig" value="/WEB-INF/menu-config.xml"/>
� </plug-in>


�

HTH,

�

Matt

-----Original Message-----
From: CHALISSARY DAVID [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 3:29 AM
To: 'Matt Raible'
Subject: RE: [Struts-menu-devel] Re: Unable to load tag handler

Hi Matt,

�

I did the following by putting struts-menu.jar under WEB-INF/lib directory and also having my menu-config, resource-config and the

struts-config under WEB-INF; inclusive of the tld file and the web.xml files. I don't know the reason for the following error. Is there any

other repository files that's needed besides the ones that I mentioned.

I also added the following in struts-config file -

<message-resources� parameter="TrackerRes"/>

<message-resources� parameter="ISOCodeRes" key="ISOCodeRes"/>

I don't know what is the requirement for this??

But I encountered the error as mentioned below, Is there any other resources that needed to be added besides the one already

In place??

�

Again thanks in advance.

�

Exception report

message

The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: The menu repository could not be found.

������� org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:673)

������� org.apache.jsp.SimpleMenu_jsp._jspService(SimpleMenu_jsp.java:77)

������� org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)

������� javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

������� org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)

������� org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)

������� org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)

������� javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

root cause

javax.servlet.jsp.JspException: The menu repository could not be found.

������� com.fgm.web.menu.displayer.taglib.UseMenuDisplayerTag.doStartTag(Unknown Source)

������� org.apache.jsp.SimpleMenu_jsp._jspx_meth_menu_useMenuDisplayer_0(SimpleMenu_jsp.java:93)

������� org.apache.jsp.SimpleMenu_jsp._jspService(SimpleMenu_jsp.java:67)

������� org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)

������� javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

������� org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)

������� org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)

������� org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)

������� javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

�

�

�

----------------------------------------------------------------------

David Chalissary

Software Developer

Tel:��������� +353 1 216 2814

Fax: ������� +353 1 216 2077

�

Siemens Business Services

Fitzwilliam Court,

Leeson Close,

Dublin 2,

Ireland.

mailto:[EMAIL PROTECTED]

http://www.sbs.ie

This e-mail contains confidential information and is for the exclusive use of the addressee/s.� If you are not the addressee, then any distribution, copying or use of this e-mail is prohibited.� If received in error, please advise the sender and delete it immediately.� We accept no liability for any loss or damage suffered by any person arising from use of this e-mail.

�

�

-----Original Message-----
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: 24 September 2003 16:55
To: [EMAIL PROTECTED]
Subject: RE: [Struts-menu-devel] Re: Unable to load tag handler

�

struts-menu.jar needs to be in WEB-INF/lib.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf OfCHALISSARY DAVID
Sent: Wednesday, September 24, 2003 6:03 AM
To: '[EMAIL PROTECTED]'
Subject: [Struts-menu-devel] Re: Unable to load tag handler

Hi all,

�

I am a new user to struts-menu and I have a simple menu

as shown in the Simple menu.jsp

�

<%@ taglib uri="/WEB-INF/struts-menu.tld"

prefix="menu"%>

<menu:useMenuDisplayer name="SimpleMenu">

<menu:displayMenu name="SimpleHome"/>

<menu:displayMenu name="SimpleAbout"/>

<menu:displayMenu name="SimpleExit"/>

</menu:useMenuDisplayer>

�

and in my struts-config.xml

�

<struts-config>

�

<!-- ========== Plug Ins Configuration

================================== -->

�

<plug-in className="com.fgm.web.menu.MenuPlugIn">

<set-property property="SimpleMenuConfig"

value="/WEB-INF/SimpleMenu-config.xml"/>

</plug-in>

</struts-config>

�

and in the SimpleMenu-config.xml

�

<?xml version="1.0" encoding="UTF-8" ?>

�

�

<MenuConfig>

<Displayers>

<Displayer name="TabbedMenu"

�

type="com.fgm.web.menu.displayer.TabbedMenuDisplayer

"/>

</Displayers>

�

<Menus>

<Menu name="SimpleHome" title="Home" />

<Menu name="SimpleAbout" title="About">

<Item name="People" title="People"/>

<Item name="Careers" title="Careers"/>

<Item name="Press" title="Press"/>

<Item name="Locations" title="Locations"/>

</Menu>

<Menu name="SimpleExit" title="Exit" />

</Menus>

</MenuConfig>

�

I get the following Exception on the page

�

org.apache.jasper.JasperException: /SimpleMenu.jsp

(14,0) Unable to load tag handler

class "com.fgm.web.menu.displayer.taglib.UseMenuDisplay

erTag" for tag "menu:useMenuDisplayer"

org.apache.jasper.compiler.DefaultErrorHandler.j

spError(DefaultErrorHandler.java:83)

org.apache.jasper.compiler.ErrorDispatcher.disp

atch(ErrorDispatcher.java:402)

org.apache.jasper.compiler.ErrorDispatcher.jspEr

ror(ErrorDispatcher.java:236)

org.apache.jasper.compiler.Parser.parseCustom

Tag(Parser.java:1358)

org.apache.jasper.compiler.Parser.parseElement

s(Parser.java:1646)

org.apache.jasper.compiler.Parser.parse

(Parser.java:173)

org.apache.jasper.compiler.ParserController.pars

e(ParserController.java:247)

org.apache.jasper.compiler.ParserController.pars

e(ParserController.java:149)

org.apache.jasper.compiler.ParserController.pars

e(ParserController.java:135)

org.apache.jasper.compiler.Compiler.generateJa

va(Compiler.java:243)

org.apache.jasper.compiler.Compiler.compile

(Compiler.java:451)

org.apache.jasper.compiler.Compiler.compile

(Compiler.java:437)

org.apache.jasper.JspCompilationContext.compil

e(JspCompilationContext.java:555)

org.apache.jasper.servlet.JspServletWrapper.se

rvice(JspServletWrapper.java:291)

org.apache.jasper.servlet.JspServlet.serviceJsp

File(JspServlet.java:301)

org.apache.jasper.servlet.JspServlet.service

(JspServlet.java:248)

javax.servlet.http.HttpServlet.service

(HttpServlet.java:856)

�

�

The struts-menu.jar is installed under the WEB-

INF\classes\lib directory.

Besides when I try to open the struts-menu.jar thru

winzip I get an error stating Failed to Load Main-Class

manifest attribute. I dont know if there is any relation to

this error.

�

thanks for the help in advance.

�

regards,

�

David

�

�

Reply via email to