多项选择题
Which two classes or interfaces provide a getSession method?()
A. javax.servlet.http.HttpServletRequest
B. javax.servlet.http.HttpSessionContext
C. javax.servlet.http.HttpsServletResponse
D. javax.servlet.http.HttpSessionBindingEvent
E. javax.servlet.http.HttpSessionAttributeEvent
相关考题
-
多项选择题
Whichthe threeinterfacesneedtobedeclaredinthewebapplicationdeploymentdescriptor?()
A. HttpSessionListener
B. HttpSessionBindingListener
C. HttpSessionTimedOutListener
D. HttpSessionAttributeListener
E. HttpSessionActivationListener
F. HttpSessionPassivatedListener -
单项选择题
Given that session is a valid HttpSession object: Int max = session.getAttribute(“MyReallyLongName”); Which is true?()
A. The value returned needs to be cast to an int.
B. The getAttribute methos takes two arguments.
C. Primitive CANNOT be stored in the HttpSession.
D. The HttpSession attribute name must NOT exceed eight characters. -
多项选择题
Uponauser’sfirstvisittothewebsite,whichtwooperationsarealwaysperformedwhenthegetSessionmethodiscalledwithnoargumentsinaservlet?()
A. All URLs returned by the server are rewritten.
B. An HttpSession object is created if necessary.
C. The user name and password of the user are checked.
D. The session ID is stored in the HTTP response as a cookie.
