As per the JSR 286 Specification the following Listeners, which work with Servlet Requests, can be applied to requests targeted towards Portlets.
For this to work the Container needs to set a variable javax.portlet.lifecycle_phase.
Lets see an example.
- ServletContextListener
- ServletContextAttributeListener
- HttpSessionActivationListener
- HttpSessionAttributeListener
- HttpSessionBindingListener
- ServletRequestListener.
For this to work the Container needs to set a variable javax.portlet.lifecycle_phase.
Lets see an example.