在Servlet里,能正确获取session的语句是()。
第1题:
A、HttpSessionsession=request.getSession(true)
B、HttpSessionsession=request.getHttpSession(true)
C、HttpSessionsession=response.getSession(true)
D、HttpSessionsession=response.getHttpSession(true)
第2题:
下列定义Session变量的语句中,正确的是()。
第3题:
A.PrintWriterout=request.getWriter();
B.PrintWriterout=request.getPrinteWriter();
C.PrintWriterout=response.getWriter();
D.PrintWriterout=responce.getPrinteWriter();
第4题:
Which interface must a class implement so that instances of the class are notified after any object is addedto a session?()
第5题:
如果要把一个用户名jack保存在session对象里,则下列语句正确的是()。
第6题:
假设现在已经利用session对象把变量a赋值为hello,那么下列语句中能显示出“hello”的是______。
A.<%=session("a")%>
B.<%=session"a"%>
C.<%=session(a)%>
D.<%=session: a%>
第7题:
在Servlet里,能实现跳转的方法有()。
第8题:
A.session.dispose()
B.session.clear()
C.session.invalidate()
D.session.removeAll()
第9题:
Which interface must a class implement to be informed of a session creation event?()
第10题:
下面哪个有关Servlet中init()操作的说法不正确的是:()