搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单选题】

在public HttpSession getSession(boolean bool)的方法定义中,当bool为false时表明()

A、直接返回会话对象

B、当服务器已经创建了会话对象就返回该对象,否则返回null

C、直接返回null

D、当服务器已经创建了会话对象就返回该对象,否则新建一个会话对象并返回

更多“在public HttpSession getSession(boolean bool)的方法定义中,当bool为false时表明()”相关的问题
第1题

A、Servlet容器负责创建HttpSession对象  B、每个HttpSession对象都有惟一的ID  C、HttpSession的数据保存客户端  D、对客户端每次请求服务器都会创建HttpSession对象  

点击查看答案
第2题

A、HttpSession session=request.getSession(true)  B、HttpSession session=request.getHttpSession(true)  C、HttpSession session=response.getSession(true)  D、HttpSession session=response.getHttpSession(true)  

点击查看答案
第3题

A、A.绑定到HttpSession对象上的属性应用程序的生存期内总是有效的  B、B.会话属性是特定用户的专用数据,同时访问WEB应用的其他用户无法访问这些属性  C、C.使用HttpSession对象的addAttribute方法添加会话属性  D、D.使用HttpSession对象的removeAttributeNames方法删除会话属性  

点击查看答案
第4题

A、HttpSession session = request.getSession();  B、HttpSession session = request.getSession(id);  C、HttpSession session = request.getSession(true);  D、HttpSession session = request.getSession(false);  E、HttpSession session = request.getSession("jsessionid");  

点击查看答案
第5题

A、HttpServletRequest;getSession  B、HttpServletRequest;NewSession  C、HttpSession;newInstance  D、HttpSession;getSession  

点击查看答案
第6题

A、A. HttpSession session = request.getSession();  B、B. HttpSession session = request.getSession(id);  C、C. HttpSession session = request.getSession(true);  D、D. HttpSession session = request.getSession(false);  E、E. HttpSession session = request.getSession(“jsessionid”)  

点击查看答案
第7题

A、session对象的类是HttpSession.HttpSession由服务器的程序实现  B、session对象提供HTTP服务器和HTTP客户端之间的会话  C、session可以用来储存访问者的一些特定信息  D、session可以创建访问者信息容器。  E、当用户应用程序的页之间跳转时,存储session对象中的变量会清除  

点击查看答案
第8题

A、getAttribute method of javax.servlet.Session  B、getAttribute method of javax.servlet.http.HttpSession  C、getAttribute method of javax.servlet.http.Session  D、getAttribute methodof javax.servlet.HttpSession  

点击查看答案
第9题

A、ServletContext监听Servlet的会话信息  B、ServletContext监听Web上下文的信息  C、HttpSession监听Servlet的会话信息  D、ServletRequest监听Servlet的请求信息  E、HttpSession监听Web上下文的信息  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服