单项选择题
Which statement, at line 16, retrieves an InputStream for the file /WEBINF/ nyresrc.bin()?
A. new InputStream(“/WEB-INF/nyressrc.bin”);
B. ctx.getInputStream(“/WEB-INF/nyresrc.bin”);
C. ctx.getresourceAsStream(“/WEB-INF/nyresrc.bin”);
D. new InputStream(“/WEB-INF/nyresrc.bin”);
E. getClass().getResourceAsStream(“/WEB-INF/nyresrc.bin”);
相关考题
-
多项选择题
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.
