题目内容

关于HttpSessionListener接口中的方法,HttpSession对象被创建时将调用的方法是( )

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

查看答案
更多问题

下面关于客户端访问Tomcat服务器中的某个静态HTML文件时的说法中,正确的是()

A. 直接访问HTML等静态资源
B. 先访问缺省Servlet,由缺省Servlet再决定定位静态资源
C. 先访问HTML静态资源,再访问缺省Servlet
D. 以上说法都不对

下面选项中, 用于根据指定名称删除ServletContext匹配的域属性的方法是()

A. void remove(String name)
B. void removeAttribute(Object name)
C. void removeAttribute(String name)
D. Object removeAttribute(String name)

关于HttpSessionListener接口中的方法,HttpSession对象被销毁时将调用的方式( )

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

在浏览器中输入http://localhost:8080/myWebApp/start/,就会调用itcast包中名为Student的Servlet,那么在web.xml中配置正确的是()

A. /start/*itcast.Student
B. itcast.Student /start/*
C. studentitcast.Studentstudent/start/*
D. itcast.Student student itcast.Student /start/*

答案查题题库