The moose likes Struts and the fly likes Element type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Element type "plug-in" must be declared." Watch "Element type "plug-in" must be declared." New topic

Element type "plug-in" must be declared.

Venkatesh Kumar
Ranch Hand

Joined: Aug 08, 2003
Posts: 68
Hi All:

I am trying to create a jsp page with tabbed menu,and I get the following exception when i try to acces the jsp page with the menu.I cann see the menu items but they are not in the tabbed fashion.Plese some one help in resolving the following exception

Part of the exception:

arse Error at line 33 column 57: Element type "plug-in" must be declared.
org.xml.sax.SAXParseException: Element type "plug-in" must be declared.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(

Parse Error at line 38 column 17: The content of element type "struts-config" must match "(data-sources?,form-beans?,global-forwards?,action-mappings?)".
org.xml.sax.SAXParseException: The content of element type "struts-config" must match "(data-sources?,form-beans?,global-forwards?,action-mappings?)".

My struts -config looks like:

<form-bean name="nameForm" type="com.actek.actionform.NameForm"/>

<forward name="success" path="/main.jsp"/>

<!-- Save user registration -->
<action path="/setName"

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

My menu-congig.xml looks like


<Displayer name="TabbedMenu"

<!-- New Menu for Tabbed Displayer -->
<Menu name="TabbedHome" title="Home" location="?Home" target="_blank"/>
<Menu name="TabbedAbout" title="About"> <!-- No location, uses first item's location (People) -->
<Item name="People" title="People" location="?People"/>
<Item name="Careers" title="Careers" location="?Careers" target="_blank"/>

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

<Menu name="TabbedContact" title="Contact" location="?Contact">
<Item name="EMail" title="E-Mail" location="?EMail"/>
<Item name="Phone" title="Phone" location="?Phone"/>
<Item name="CarrierPigeon" title="Carrier Pigeon" location="?Pigeon"/>
<Menu name="TabbedExit" title="Exit" page="/login.jsp"/>

I agree. Here's the link:
subject: Element type "plug-in" must be declared.
jQuery in Action, 3rd edition