JavaWeb中监听器的事件源(ServletContext、HttpSession、ServletRequest、JavaBean)
1、ServletContext
- 生命周期监听:ServletContextListener
- 属性监听:ServletContextAttributeListener
2、HttpSession
- 生命周期监听:HttpSessionListener
- 属性监听:HttpSessionAttributeListener
3、ServletReques
- 生命周期监听:ServletRequestListener
- 属性监听:ServletRequestAttributeListener
4、JaveBean
- 感知监听:HttpSessionBindingListener
- 钝化活化监听:HttpSessionActivationListener