Reputation: 216
I want to show struts2 menu on my jsp page but it gives me errorr as follows:
javax.servlet.jsp.JspException: The menu repository could not be found.
I search on internet i found that it requires commons.lang jar, commons-logging.jar and i already have this jar in my struts2 project.
How can i show struts2 menu on my jsp page? My jsp code as follows:
<menu:useMenuDisplayer name="TabbedMenu" config="/templates/tabs.html">
<ul id="primary-nav" >
<li class="pad"> </li>
<menu:displayMenu name="Order"/>
<menu:displayMenu name="Report"/>
<menu:displayMenu name="BatchProcessing"/>
<menu:displayMenu name="Master"/>
</ul>
</menu:useMenuDisplayer>
I have menu-config.xml as follows:
<MenuConfig>
<Displayers>
<Displayer name="TabbedMenu" type="net.sf.navigator.displayer.TabbedMenuDisplayer"/>
</Displayers>
<Menus>
<Menu name="Order" title="Order" />
<Menu name="Report" title="Report" />
<Menu name="BatchProcessing" title="Batch Processing" />
<Menu name="Master" title="Master" />
</Menus>
</MenuConfig>
Upvotes: 1
Views: 2221
Reputation: 1825
add commons-logging.jar and commons-lang.jar in your project at WEB-INF/Lib
Upvotes: 2