JavaWeb中監聽器的事件源(ServletContext、HttpSession、ServletRequest、JavaBean)
1、ServletContext
- 生命週期監聽:ServletContextListener
- 屬性監聽:ServletContextAttributeListener
2、HttpSession
- 生命週期監聽:HttpSessionListener
- 屬性監聽:HttpSessionAttributeListener
3、ServletReques
- 生命週期監聽:ServletRequestListener
- 屬性監聽:ServletRequestAttributeListener
4、JaveBean
- 感知監聽:HttpSessionBindingListener
- 鈍化活化監聽:HttpSessionActivationListener