Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.struts2.dispatcher.ng.listener
Class StrutsListener

    java.lang.Object
      org.apache.struts2.dispatcher.ng.listener.StrutsListener

All Implemented Interfaces:
  java.util.EventListener, javax.servlet.ServletContextListener

    public class StrutsListener

extends java.lang.Object
implements javax.servlet.ServletContextListener

Servlet listener for Struts. The preferred way to use Struts is as a filter via the `StrutsPrepareAndExecuteFilter` and its variants. This might be useful if Struts config information is needed from other servlet listeners, like Sitemesh or OSGi

Constructor Summary
`StrutsListener()`

Method Summary
`void` | `contextDestroyed(javax.servlet.ServletContextEvent sce)`
`void` | `contextInitialized(javax.servlet.ServletContextEvent sce)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### StrutsListener

    public StrutsListener()

Method Detail

### contextInitialized

    public void contextInitialized(javax.servlet.ServletContextEvent sce)

  Specified by:
    `contextInitialized` in interface `javax.servlet.ServletContextListener`

### contextDestroyed

    public void contextDestroyed(javax.servlet.ServletContextEvent sce)

  Specified by:
    `contextDestroyed` in interface `javax.servlet.ServletContextListener`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.