net.sf.navigator.menu
Class MenuContextListener
java.lang.Object
net.sf.navigator.menu.MenuContextListener
- All Implemented Interfaces:
- EventListener, javax.servlet.ServletContextListener
public class MenuContextListener
- extends Object
- implements javax.servlet.ServletContextListener
This class is designed for use in applications that don't use Struts
but do want to use Struts Menu. You simply need to configure this
listener in your web.xml file with the following syntax:
<!--
- Loads the menu-config.xml for struts-menu at startup,
- by default from "/WEB-INF/menu-config.xml".
- To override this, add a context-param named "menuConfigLocation"
- web.xml file.
-->
<listener>
<listener-class>net.sf.navigator.menu.MenuContextListener</listener-class>
</listener>
- Author:
- Matt Raible
Method Summary |
void |
contextDestroyed(javax.servlet.ServletContextEvent sce)
|
void |
contextInitialized(javax.servlet.ServletContextEvent sce)
Initialization of the Menu Repository. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MenuContextListener
public MenuContextListener()
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce)
- Initialization of the Menu Repository.
- Specified by:
contextInitialized
in interface javax.servlet.ServletContextListener
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyed
in interface javax.servlet.ServletContextListener
Copyright © 2003-2007 SourceForge. All Rights Reserved.