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、HttpSession session=request.getSession(true) B、HttpSession session=request.getHttpSession(true) C、HttpSession session=response.getSession(true) D、HttpSession session=response.getHttpSession(true)
A、session.getAttribute(“key”,”value”) B、session.setAttribute(“key”,”value”) C、session.setAtrribute(“key”) D、session.getAttribute(“key”)
A、A.session.setAttribute(i,”I”) B、B.session.setParameter(“I”,i) C、C.session.setAttribute(new Integer(i),”I”) D、D.session.setAttribute(“I”,new Integer(i))
A、使用HQL进行批量操作,Hibernate不支持批量插入 B、使用JDBCAPI进行批量操作,SQL语句中涉及的数据会被加载到Session缓存,占用内存空间 C、使用Session进行批量操作,数据会被加载到Session缓存,需注意刷新并清空缓存 D、使用Session进行批量操作,适用于需要通过代码处理的复杂的业务逻辑场景
A、<% Session(” name ”)= Tom %> B、<% Session(name )= ” Tom ” %> C、<%Session(name )= Tom %> D、<% Session(” name ”)= ” Tom ” %>