单项选择题
在JAVA EE中,使用Servlet过滤器时,可以在web.xml文件的()元素中包括〈init-param〉元素。
A.〈filter〉
B.〈filter-mapping〉
C.〈filter-name〉
D.〈filter-class〉
点击查看答案&解析
相关考题
-
单项选择题
在JAVAEE中,在一个JSP文件中,有表达式〈%=2+3%〉,它将输出()。
A.2+3
B.5
C.23
D.不会输出,因为表达式是错误的 -
单项选择题
在JSP中,()动作用于将请求转发给其他JSP页面。
A.forward
B.include
C.useBean
D.setProperty -
单项选择题
在Servlet里,能正确获取session的语句是()。
A.HttpSession session=request.getSession(true)
B.HttpSession session=request.getHttpSession(true)
C.HttpSession session=response.getSession(true)
D.HttpSession session=response.getHttpSession(true)
