单项选择题
以下哪条语句能够将session中的属性key删除?()
A.session.unbind("key");
B.session.remove("key");
C.session.removeAttribute("key");
D.session.unbindAttribute("key");
点击查看答案&解析
相关考题
-
单项选择题
阅读下面代码片段(其中login.jsp页面在WebContext目录下):Servlet1:request.setAttribute("company","XXX有限公司");RequestDispatcherdispatcher=request.getRequestDispatcher("login.jsp");dispatcher.forward(request,response);login.jsp:hello${company}当使用浏览器访问Servlet1时会什么结果?()
A.页面跳转失败
B.页面结果显示为:hello${company}
C.页面跳转错误,程序出现异常
D.正常跳转,页面显示为:helloXXX有限公司 -
单项选择题
下面关于配置web默认页面index.html的说法中,正确的是()。
A.<welcome-file-list><welcome-files>index.html</welcome-files></welcome-file-list>
B.<welcome-file-lists><welcome-file>index.html</welcome-file></welcome-file-lists>
C.<welcome-file-list><welcome-file>index.html</welcome-file></welcome-file-list>
D.<welcome-file-lists><welcome-files>index.html</welcome-files></welcome-file-lists> -
单项选择题
关于HTTP请求中的GET和POST方法下面叙述正确的是()。
A.GET方法提交数据会将所有数据显示在URL地址的后面
B.POST方法提交数据会将所有数据显示在URL地址的后面
C.GET方法提交数据更安全
D.使用POST方法提交汉字数据不会乱码
