多项选择题
Upon a user’s first visit to the website, which two operations are always performed when the getSession method is called with no arguments in a servlet?()
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. -
单项选择题
AssumeataghandlerextendsTagSupport.Whichisusedwithinthetaghandlertogetanattribute“foo”thatisintheapplicationscope?()
A. pageContext.getAttribute(“foo”);
B. getPageContext().getAttribute(“foo”);
C. pageContext.getApplicationScope(“foo”);
D. pageContext.getAttribute(“foo”,pageContext.APPLICATION_SCOPE).getAttribute(“foo”);
E. getPageContext().getScope(pageContext.APPLICATION_SCOPE).getAttribute(“foo”);
