题目内容

在JSP页面中有如下代码:<%request.setAttribute("username", "itcast");request.setAttribute("username", "itheima");request.removeAttribute("username");%>在监听器实现类中,可以获得username属性值的对象是()

A. ServletRequestAttributeEvent
B. HttpSessionBindingEvent
C. ServletContextAttributeEvent
D. HttpSessionAttributeListener

查看答案
更多问题

下列选项中,用于匹配拦截器所过滤的URL的元素是( )

A.
B.
C.
D.

下面选项中,用来表示Filter链的对象是( )

A. Filter对象
B. FilterConfig对象
C. FilterChain对象
D. ServletChain对象

一个Web应用程序中,Filter可以注册的次数是( )

A. 只能是1次
B. 只能是0次
C. 可以是0次或1次或多次
D. 只能是2次

下面选项中,用于监听ServletContext对象中属性变更的接口是()

A. HttpSessionAttributeListener
B. ServletContextAttributeListener
C. ServletRequestAttributeListener
D. ApplicationAttributeListener

答案查题题库