A.
B.
C.
D.
您可能感興趣的試卷
你可能感興趣的試題
A.<class><br/>
B.<webapp><br/>
C.<servlet><br/>
D.<codebase><br/>
E.<servlet-class>
Given:
11.public class MyServlet extends HttpServlet {
12.public void service(HttpServletRequest request,
13.HttpServletResponse response)
14.throws ServletException, IOException {
15.// insert code here
16.}
17.}
and this element in the web application’s deployment descriptor:
<error-page>
<error-code>302</error-code>
<location>/html/error.html</location>
</error-page>
Which,inserted at line 15,causes the container to redirect control to the error.html resource?()
A.response.setError(302);
B.response.sendError(302);
C.response.setStatus(302);
D.response.sendRedirect(302);
E.response.sendErrorRedirect(302);
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
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.
最新試題
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.
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?()
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.
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?()
Which three are true about servlet filters?()
Given a web application in which the request parameter productID contains a product identifier.Which twoEL expressions evaluate the value of the productID?()