多项选择题

Given a web application in which the request parameter productID contains a product identifier.
Which twoEL expressions evaluate the value of the productID?()

A.${productID}
B.${param.productID}
C.${params.productID}
D.${params.productID[1]}
E.${paramValues.productID}
F.${paramValues.productID[0]}


您可能感兴趣的试卷

你可能感兴趣的试题

2.多项选择题

A web application allows the HTML title banner to be set using a servlet context initialization parametercalled titleStr.
Which two properly set the title in this scenario?()

A.<title>${titleStr}</title>
B.<title>${initParam.titleStr}</title>
C.<title>${params[0].titleStr}</title>
D.<title>${paramValues.titleStr}</title>
E.<title>${initParam[’titleStr’]}</title>

6.单项选择题Which is true about the web container request processing model?()

A.The init method on a filter is called the first time a servlet mapped to that filter is invoked.
B.A filter defined for a servlet must always forward control to the next resource in the filter chain.
C.Filters associated with a named servlet are applied in the order they appear in the web application deployment descriptor file.
D.If the init method on a filter throws an UnavailableException, then the container will make no further attempt to execute it.

7.多项选择题Which three are true about servlet filters?()

A.A filter must implement the destroy method.
B.A filter must implement the doFilter method.
C.A servlet may have multiple filters associated with it.
D.A servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain interface.
E.A filter that is part of a filter chain passes control to the next filter in the chain by invoking the FilterChain.forward method.

9.单项选择题Which ensures that a JSP response is of type "text/plain"?()

A.<%@ page mimeType="text/plain" %>
B.<%@ page contentType="text/plain" %>
C.<%@ page pageEncoding="text/plain" %>
D.<%@ page contentEncoding="text/plain" %>
E.<% response.setEncoding("text/plain"); %>

10.单项选择题

You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the <title> tag that requires the page name tobe specified dynamically when the header is imported.
Which JSP code snippet performs the import of theheader content?()

 

A.<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:include>
B.<jsp:import page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:import>
C.<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:include>
D.<jsp:import page=’/WEB-INF/jsp/header.jsp’>. <jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:import>

最新试题

In which three directories, relative to a web application’s root, may a tag library descriptor file reside whendeployed directly into a web application?()

题型:多项选择题

Your company has a corporate policy that prohibits storing a customer’s credit card number in anycorporate database. However, users have complained that they do NOT want to re- enter their credit cardnumber for each transaction. Your management has decided to use client-side cookies to record the user’scredit card number for 120 days. Furthermore, they also want to protect this information during transit fromthe web browser to the web container; so the cookie must only be transmitted over HTTPS.Which codesnippet creates the "creditCard" cookie and adds it to the out going response to be stored on the user’s webbrowser?()

题型:单项选择题

Which is true about the web container request processing model?()

题型:单项选择题

Click the ’Select and Place’ button.Place the events in the order they occur.

题型:问答题

Which three are true about servlet filters?()

题型:多项选择题

Click the 'Select and Place' button.Place the events in the order they occur.

题型:问答题

Click the ’Select and Place’ button.Place the events in the order they occur.

题型:问答题

Click the 'Select and Place' button.Place the events in the order they occur.

题型:问答题

Click the Exhibit button.The attribute "name" has a value of "Foo,"What is the result if this tag handler’s tag is invoked?()

题型:单项选择题

You need to create a JSP that generates some JavaScript code to populate an array of strings used on the client-side.Which JSP code snippet will create this array?()

题型:单项选择题