多項(xiàng)選擇題

You want to create a valid directory structure for your Java EE web application, and your application usestag files and a JAR file.
Which three must be located directly in your WEB-INF directory(NOT in asubdirectory of WEB-INF)?()

A.The JAR file
B.A directory called lib
C.A directory called tags
D.A directory called TLDs
E.A directory called classes
F.A directory called META-INF


您可能感興趣的試卷

你可能感興趣的試題

2.單項(xiàng)選擇題

Click the Exhibit button.

As a maintenance feature, you have created this servlet to allow you to upload and remove files on yourweb server. Unfortunately, while testing this servlet, you try to upload a file using an HTTP request and onthis servlet, the web container returns a 404 status.
What is wrong with this servlet?()

A.HTTP does NOT support file upload operations.
B.The servlet constructor must NOT have any parameters.
C.The servlet needs a service method to dispatch the requests to the helper methods.
D.The doPut and doDelete methods do NOT map to the proper HTTP methods.

3.單項(xiàng)選擇題

Given:
10.public void service(ServletRequest request,
11.ServletResponse response) {
12.ServletInputStream sis =
13.// insert code here
14.}
Which retrieves the binary input stream on line 13?()

A.request.getWriter();
B.request.getReader();
C.request.getInputStream();
D.request.getResourceAsStream();

5.多項(xiàng)選擇題

You are creating a servlet that generates stock market graphs. You want to provide the web browser withprecise information about the amount of data being sent in the response stream. 
Which twoHttpServletResponse methods will you use to provide this information?()

A.response.setLength(numberOfBytes);
B.response.setContentLength(numberOfBytes);
C.response.setHeader("Length", numberOfBytes);
D.response.setIntHeader("Length", numberOfBytes);
E.response.setHeader("Content-Length", numberOfBytes);
F.response.setIntHeader("Content-Length", numberOfBytes);

最新試題

Your IT department is building a lightweight Front Controller servlet that invokes an application logic objectwith the interface:public interface ApplicationController {public String invoke(HttpServletRequest request)}The return value of this method indicates a symbolic name of the next view. From this name, the FrontController servlet looks up the JSP URL in a configuration table. This URL might be an absolute path or apath relative to the current request. Next, the Front Controller servlet must send the request to this JSP togenerate the view. Assume that the servlet variable request is assigned the current HttpServletRequestobject and the variable context is assigned the webapp’s ServletContext.Which code snippet of the FrontController servlet accomplishes this goal?()

題型:?jiǎn)雾?xiàng)選擇題

Which ensures that a JSP response is of type "text/plain"?()

題型:?jiǎn)雾?xiàng)選擇題

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

題型:多項(xiàng)選擇題

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

題型:?jiǎn)柎痤}

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

題型:?jiǎn)雾?xiàng)選擇題

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

題型:?jiǎn)柎痤}

You are building a dating web site. The client’s date of birth is collected along with lots of other information.The Person class has a derived method, getAge():int, which returns the person’s age calculated from thedate of birth and today’s date. In one of your JSPs you need to print a special message to clients within theage group of 25 through 35.Which two EL code snippets will return true for this condition? ()

題型:多項(xiàng)選擇題

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

題型:?jiǎn)柎痤}

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

題型:?jiǎn)柎痤}

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

題型:?jiǎn)柎痤}