在ServletRequest对象上,可能会触发两种事件,分别是ServletRequestEvent和ServletRequestAttributeEvent。
查看答案
ServletContextListener接口的contextDetroyed()方法,是在ServletContext对象销毁时被调用。
A. 对
B. 错
ServletContextAttributeListener接口的attributeAdded()方法,是在ServletContext对象中添加属性时被调用。
A. 对
B. 错
当在请求对象中替换属性值时,调用的方法是ServletRequestAttributeListener接口的attributeReplaced()方法。
A. 对
B. 错
会话创建时,调用的方法是HttpSessionListener接口的sessionCreated()。
A. 对
B. 错