Given an HttpSession session,a ServletRequest request,and a ServletContext context,which retrieves aURL to /WEB-INF/myconfig.xml within a web application?()
第1题:
Given: 3.public class MyTagHandler extends TagSupport { 4.public int doStartTag() { 5.// insert code here 6.// return an int 7.} 8.// more code here ... 18.} There is a single attribute foo in the session scope. Which three code fragments,inserted independently atline 5,return the value of the attribute?()
第2题:
J2EE中,()类的()方法用于创建对话。
第3题:
下列选项中关于HttpSession描述错误的是()。
第4题:
下面关于HttpSession的说法正确的是()
第5题:
session对象是HttpSession接口类的实例,由客户端负责创建和销毁。
第6题:
关于HttpSession会话对象的属性,正确的选项是()?
第7题:
Given that session is a valid HttpSession object: Int max = session.getAttribute(“MyReallyLongName”); Which is true?()
第8题:
The value returned needs to be cast to an int.
The getAttribute methos takes two arguments.
Primitive CANNOT be stored in the HttpSession.
The HttpSession attribute name must NOT exceed eight characters.
第9题:
req.getSession()
req.getSession(false)
req.getSession(true)
req.createSession()
第10题:
Getcreationtime
Invalidateafter
Getlastaccessedtime
Getmaxinactiveinterval
第11题:
HttpSession session = request.getSession();
HttpSession session = request.getSession(id);
HttpSession session = request.getSession(true);
HttpSession session = request.getSession(false);
HttpSession session = request.getSession(jsessionid);
第12题:
第13题:
Given an HttpServletRequest request: 22.String id = request.getParameter("jsessionid"); 23.// insert code here 24.String name = (String) session.getAttribute("name"); Which three can be placed at line 23 to retrieve anexisting HttpSession object?()
第14题:
HttpSession失效的时机是()。
第15题:
在Servlet里,能正确获取session的语句是()。
第16题:
每个HttpSession对象都有惟一的ID。
第17题:
JavaWeb应用程序必须负责为HttpSession分配惟一的ID。
第18题:
HttpSession session=request.getSession(false)与HttpSession session = request.getSession(true)的区别()。
第19题:
HttpSession通过HttpServletRequest对象获得
HttpSession可以用来保存数据,并实现数据的传递
HttpSession被创建后,将始终存在,直到服务停止
调用HttpSession的invalidate()方法,可以删除创建的HttpSession对象及数据
第20题:
绑定到HttpSession对象上的属性在应用程序的生存期内总是有效的
会话属性是特定用户的专用数据,同时访问WEB应用的其他用户无法访问这些属性
使用HttpSession对象的addAttribute方法添加会话属性
使用HttpSession对象的removeAttributeNames方法删除会话属性
第21题:
对
错
第22题:
session = response.getSession();
session = request.getSession();
session = request.getSession(true);
session = request.getSession(false);
session = request.getSession(jsessionid);
第23题:
Servlet容器负责创建HttpSession对象
每个HttpSession对象都有惟一的ID
HttpSession的数据保存在客户端
对客户端每次请求服务器都会创建HttpSession对象