package smp;
import javax.servlet.ServletContext;
import javax.servlet.ServletRequestAttributeEvent;
import javax.servlet.ServletRequestAttributeListener;
public class SampleListener implements ServletRequestAttributeListener {
public void attributeAdded(ServletRequestAttributeEvent ev) {
ServletContext sc = ev.getServletContext();
sc.log("追加属性名:" + ev.getName() + " 追加した属性値" + ev.getValue());
}
public void attributeRemoved(ServletRequestAttributeEvent ev) {
ServletContext sc = ev.getServletContext();
sc.log("削除属性名:" + ev.getName() + " 削除した属性値" + ev.getValue());
}
public void attributeReplaced(ServletRequestAttributeEvent ev) {
ServletContext sc = ev.getServletContext();
sc.log("変更属性名:" + ev.getName() + " 変更前の属性値" + ev.getValue());
}
}
|