相关考题
-
单项选择题
下列哪项不是HttpServlet的方法()
A.init()
B.destroy()
C.doPost()
D.execute() -
单项选择题
下列哪种方式可以在session中保存一个名为"name",值为"newer"的属性()
A.request.getSession().setAttribute(“name”,"newer")
B.request.getSession().getAttribute(“ID”,id);
C.request.getSession().setParameter(“ID”,id);
D.request.getSession().getParameter(“ID”,id) -
多项选择题
下面关于HttpSession的说法正确的是()
A.Servlet容器负责创建HttpSession对象
B.每个HttpSession对象都有惟一的ID
C.HttpSession的数据保存在客户端
D.对客户端每次请求服务器都会创建HttpSession对象
