过滤器的使用主要是通过3个核心接口进行操作的,分别为Filter接口 、接口、FilterConfig接口。
查看答案
在ServletRequest对象上,可能会触发两种事件,分别是ServletRequestEvent和ServletRequestAttributeEvent。
A. 对
B. 错
ServletContextListener接口的contextDetroyed()方法,是在ServletContext对象销毁时被调用。
A. 对
B. 错
ServletContextAttributeListener接口的attributeAdded()方法,是在ServletContext对象中添加属性时被调用。
A. 对
B. 错
当在请求对象中替换属性值时,调用的方法是ServletRequestAttributeListener接口的attributeReplaced()方法。
A. 对
B. 错