多项选择题
Which the three interfaces need to be declared in the web application deployment descriptor? ()
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. -
单项选择题
Whichinterfacemustaclassimplementtobeinformedofasessioncreationevent?()
A. javax.servlet.http.HttpSessionListener
B. javax.servlet.http.HttpSessionBindingListener
C. javax.servlet.http.HttpSessionCreationListener
D. javax.servlet.http.HttpSessionActivationListener
