题目内容

下面选项中,由web容器创建出来的对象是() (多选)

A. HttpSession
B. ServletContext
C. ServletRequest
D. ServletResponse

查看答案
更多问题

阅读下面的代码:TestServlet01cn.itcast.chapter04.servlet.TestServlet01 TestServlet01/TestServlet01TestServlet01/Test01下面选项中,可以访问chapter04应用下该Servlet的是()

A. http://localhost:8080/chapter04/TestServlet01
B. http://localhost:8080/chapter04/servlet/TestServlet01
C. http://localhost:8080/chapter04/Test01
D. http://localhost:8080/chapter04/servlet/Test01

下面选项中,属于HttpSessionListener接口中定义的方法是( )(多选)

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

下面选项中,属于ServletRequestListener接口中定义的方法是( )

A. requestCreated()
B. requestInitialized ()
C. requestDestroyed()
D. destroyedRequest()

下面选项中,能够用于监听域对象创建和销毁的是( )(多选)

A. 实现ServletContextListener接口的类
B. 实现HttpSessionListener接口的类
C. 实现ServletRequestListener接口的类
D. 实现ServletResponseListener接口的类

答案查题题库