多項選擇題For a given ServletResponse response,which two retrieve an object for writing text data?()

A.response.getWriter()
B.response.getOutputStream()
C.response.getOutputWriter()
D.response.getWriter().getOutputStream()
E.response.getWriter(Writer.OUTPUT_TEXT)


您可能感興趣的試卷

你可能感興趣的試題

1.多項選擇題

Given a header in an HTTP request:X-Retries:4
Which two retrieve the value of the header from a given HttpServletRequest request?()

A.Request.getHeader("X-Retries")
B.Request.getIntHeader("X-Retries")
C.Request.getRequestHeader("X-Retries")
D.Request.getHeaders("X-Retries").get(0)
E.Request.getRequestHeaders("X-Retries").get(0)

3.單項選擇題Given an HttpSession session,a ServletRequest request,and a ServletContext context,which retrieves aURL to /WEB-INF/myconfig.xml within a web application?()

A.session.getResource("/WEB-INF/myconfig.xml")
B.request.getResource("/WEB-INF/myconfig.xml")
C.context.getResource("/WEB-INF/myconfig.xml")
D.getClass().getResource("/WEB-INF/myconfig.xml")

5.多項選擇題Which two are characteristics of the Service Locator pattern?()

A.It encapsulates component lookup procedures.
B.It increases source code duplication and decreases reuse.
C.It improves client performance by caching context and factory objects.
D.It degrades network performance due to increased access to distributed lookup services.

最新試題

All of your JSPs need to have a link that permits users to email the web master. This web application islicensed to many small businesses, each of which have a different email address for the web master. Youhave decided to use a context parameter that you specify in the deployment descriptor, like this:42.<context-param>43.<param-name>webmasterEmail</param-name>44.<param-value>master@example.com</param-value>45.</context-param>Which JSP code snippet creates this email link?()

題型:單項選擇題

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

題型:單項選擇題

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

題型:多項選擇題

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 element of a web application deployment descriptor  element is required?()

題型:單項選擇題

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?()

題型:多項選擇題

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

題型:問答題

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

題型:多項選擇題

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

題型:問答題

Which three are true about servlet filters?()

題型:多項選擇題