インターフェイス名
メソッド
実行タイミング
ServletContextListener
contextInitialized
アプリケーション開始時
contextDestoryed
アプリケーション終了時
ServletContextAttributeListener
attributeAdded
コンテキスト属性の追加時
attributeRemoved
コンテキスト属性の削除時
attributeReplaced
コンテキスト属性の更新時
HttpSessionListener
sessionCreated
セッション開始時
sessionDestroyed
セッション終了時
HttpSessionAttributeListener
attributeAdded
セッション属性の追加時
attributeRemoved
セッション属性の削除時
attributeReplaced
セッション属性の更新時
HttpSessionBindingListener
valueBound
オブジェクトがセッション属性にバインドされたとき
valueUnbound
オブジェクトがセッション属性からアンバインドされた時とき
ServletRequestListener
requestInitialized
リクエスト開始時
requestDestroyed
リクエスト終了時
ServletRequestAttributeListener
attributeAdded
リクエスト属性の追加時
attributeRemoved
リクエスト属性の削除時
attributeReplaced
リクエスト属性の更新時
表3:JSP 2.0&サーブレット2.4で利用可能なリスナ