题目内容

下面选项中,用于监听HttpSession域对象创建及销毁的监听器接口是( )

A. HttpSessionAttributeListener
B. HttpSessionListener
C. HttpSessionBindingListener
D. HttpSessionActivationListener

查看答案
更多问题

下面选项中,用于获取web.xml中元素的值的方法是()

A. getServletNames()
B. getServletName()
C. getServletName(String name)
D. getServletInfo()

则空闲状态2秒分钟后,HttpSessionListener中将被调用的方法是()

A. sessionCreated()
B. initializedSession ()
C. destroyedSession()
D. sessionDestroyed()

下面选项中,用于监听ServletContext域对象创建及销毁的监听器接口是( )

A. ServletContextListener
B. ServletContextAttributeListener
C. ServletContextBindingListener
D. ServletContextActivationListener

下列关于ServletContext的说法中,错误的是( )。

A. ServletContext对象用来保存当前Web应用中的所有信息
B. 在一个Web应用中可以有多个ServletContext对象。
C. ServletContext接口封装了获取当前Web应用中资源文件的方法。
D. ServletContext对象中保存的属性可以被Web应用中的所有Servlet访问。

答案查题题库