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(ErrorHandlerWrapper.java:232)
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-beans>
<form-bean name="nameForm" type="com.actek.actionform.NameForm"/>
</form-beans>
<global-forwards>
<forward name="success" path="/main.jsp"/>
</global-forwards>
<action-mappings>
<!-- Save user registration -->
<action path="/setName"
type="com.actek.action.SetNameAction"
name="nameForm"
scope="request"
input="/login.jsp"/>
</action-mappings>
<plug-in className="net.sf.navigator.menu.MenuPlugIn">
<set-property property="menuConfig" value="/WEB-INF/menu-config.xml" />
</plug-in>
</struts-config>
My menu-congig.xml looks like
<MenuConfig>
<Displayers>
<Displayer name="TabbedMenu"
type="net.sf.navigator.displayer.TabbedMenuDisplayer"/>
</Displayers>
<Menus>
<!-- 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>
<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>
<Menu name="TabbedExit" title="Exit" page="/login.jsp"/>
</Menus>
</MenuConfig>