Given tutorial.jsp: 2.EL Tutorial 3.Example 1 4. 5.Dear ${my:nickname(user)} 6. Which, when added to the web application deployment descriptor,ensures that line 5 is included verbatimin the JSP output?()
A. B. C. D.
单项选择题WhichisabenefitofprecompilingaJSPpage?()
A.It avoids initialization on the first request. B.It provides the ability to debug runtime errors in the application. C.It provides better performance on the first request for the JSP page. D.It avoids execution of the _jspService method on the first request.
单项选择题The JSP developer wants a comment to be visible in the final output to the browser. Which comment styleneeds to be used in a JSP page?()
A.<!-- this is a comment --> B.<% // this is a comment %> C.<%-- this is a comment --%> D.<% /** this is a comment **/ %>
多项选择题Whichtwoarevalidandequivalent?()
A.<%! int i; %> B.<%= int i; %> C.<jsp:expr>int i;</jsp:expr> D.<jsp:scriptlet>int i;</jsp:scriptlet> E.<jsp:declaration>int i;</jsp:declaration>
多项选择题Inwhichthreedirectories,relativetoawebapplication’sroot,mayataglibrarydescriptorfileresidewhendeployeddirectlyintoawebapplication?()
A./WEB-INF B./META-INF C./WEB-INF/tlds D./META-INF/tlds E./WEB-INF/resources F./META-INF/resources
多项选择题Giventhatascopedattributecartexistsonlyinauser’ssession,whichtwo,takenindependently,ensurethescopedattributecartnolongerexists?()
A.${cart = null} B.<c:remove var="cart" /> C.<c:remove var="${cart}" /> D.<c:remove var="cart" scope="session" /> E.<c:remove scope="session">cart</c:remove>