多项选择题
Which three can be placed at line 23 to retrieve an existing HttpSession object?()
A. HttpSession session = request.getSession();
B. HttpSession session = request.getSession(id);
C. HttpSession session = request.getSession(true);
D. HttpSession session = request.getSession(false);
E. HttpSession session = request.getSession(“jsessionid”)
相关考题
-
单项选择题
AdeveloperfortheCompany.comwebsitehasbeentoldthatusersmayturnoffcookiesupportintheirbrowsers.Whatmustthedeveloperdotoensurethatthesecustomerscanstillusethewebapplication?()
A. The developer must ensure that every URL is properly encoded using the appropriate URL rewriting APIs
B. The developer must provide an alternate mechanism for managing sessions and abandon theHttpSession mechanism entirely
C. The developer can ignore this issue. Web containers are required to support automatic URL rewriting when cookies are not supported
D. The developer must ass the string ?id=to the end of every URL to ensure that the conversion with the browser can continue. -
单项选择题
AJSPpage,current.jsp,iscreatedtodisplaythecurrentweatherreport.Theweatherreportiscontainedinaweather.htmlpagethatisrewritteneveryfiveminutes.Whichline,appearingincurrent.jsp,ensuresthatthemostrecentversionofweather.htmlisincludedwhenevercurrent.jspisreferenced?()
A.
B.
C.
D.
E. -
单项选择题
What code, inserted at line 21, is called prior to a session being migrated to a different JVM assuming the web application containing MyExample is deployed in a container which supports distributed applications?()
A. public void valueUnbound(HttpSessionEvent ev){...}
B. public void sessionPassivated(HttpSessionEvent ev){...}
C. public void sessionDidActivate(HttpSessionEvent ev){...}
D. public void sessionWillPassivate(HttpSessionEvent ev){...}
