Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Element type "plug-in" must be declared.

Venkatesh Kumar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"/>

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic