单项选择题
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 -
多项选择题
Whichthe twoareconcerningtheobjectsavailabletodeveloperscreatingtagfiles?()
A. The session object must be declared explicity.
B. The request and response objects are available implicity.
C. The output stream is available through the implicit outStream object.
D. The servlet context is available through the implicit servletContext object.
E. The JspContext for the tag file is available through the implicit jspContext object.
