Package jakarta.servlet.annotation
Annotation Interface WebListener
This annotation is used to declare a WebListener.
Any class annotated with WebListener must implement one or more of the
ServletContextListener
, ServletContextAttributeListener
,
ServletRequestListener
, ServletRequestAttributeListener
,
HttpSessionListener
, or HttpSessionAttributeListener
, or
HttpSessionIdListener
interfaces.- Since:
- Servlet 3.0
-
Optional Element Summary
-
Element Details
-
value
String valueDescription of the listener- Returns:
- description of the listener
- Default:
- ""
-