A、Hibernat的对象只有一种状态 B、Hibernat的对象有2种状态 C、Hibernat的对象有3种状态 D、Hibernat的对象有4种状态
A、Servlet容器负责创建HttpSession对象 B、每个HttpSession对象都有惟一的ID C、HttpSession的数据保存在客户端 D、对客户端每次请求服务器都会创建HttpSession对象
A、HttpSession session=request.getSession(true) B、HttpSession session=request.getHttpSession(true) C、HttpSession session=response.getSession(true) D、HttpSession session=response.getHttpSession(true)
A、A.绑定到HttpSession对象上的属性在应用程序的生存期内总是有效的 B、B.会话属性是特定用户的专用数据,同时访问WEB应用的其他用户无法访问这些属性 C、C.使用HttpSession对象的addAttribute方法添加会话属性 D、D.使用HttpSession对象的removeAttributeNames方法删除会话属性
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");
A、HttpServletRequest;getSession B、HttpServletRequest;NewSession C、HttpSession;newInstance D、HttpSession;getSession
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”)
A、HttpServletRequest类的getSession方法有两个:带参数的getSession方法和不带参数的getSession方法 B、在Servlet中,可以使用HttpSession session = new HttpSession()创建session对象 C、如果HttpServletRequest类的getSession方法的参数为false,表示如果没有与当前的请求相联系的会话对象时,该方法返回null D、如果HttpServletRequest类的getSession方法的参数为true,表示如果没有与当前的请求相联系的会话对象时,该方法返回null
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