下面关于Servlet中url的配置方式,正确的是() (多选)
A. /my
B. /my/*
C. /*.do
D. *.do
查看答案
下面选项中,由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()