相关考题
-
单项选择题
J2EE中()类()方法用于返回应用程序的上下文路径。
A.HttpServletRequest、getContextPath()
B.HttpServletRequset、getPathInfo()
C.ServletContext、getContextPath()
D.ServletContext、getPathInfo() -
单项选择题
在J2EE中使用Servlet过滤器时,可以在web.xml文件的()元素中包括<init-param>元素。
A.<filter>
B.<filter-mapping>
C.<filter-name>
D.<filter-class> -
单项选择题
J2EE中以下关于HttpServlet的说法错误的是()
A. HttpServlet是一个抽象类
B. HttpServlet类扩展了GenericServlet类
C. HttpServlet类的子类必须至少重写service方法
D. HttpServlet位于javax.servlet.http包中
