Java-Enterprise-Edition-5-Web-Component-Developer-Certified-Professional-(1Z0-858).pdf - Oracle 1Z0-858 Java Enterprise Edition 5 Web Component(R

Java-Enterprise-Edition-5-Web-Component-Developer-Certified-Professional-(1Z0-858).pdf

This preview shows page 1 - 4 out of 10 pages.

1Z0-858 Oracle Java Enterprise Edition 5 Web Component(R) Developer Certified Professional
Image of page 1
QUESTION: 262 DRAG DROP Click the Task button. Place the XML elements in the web application deployment descriptor solution to configure a servlet context event listener named com.example.MyListener. Answer: QUESTION: 263 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. 140
Image of page 2
D. If the init method on a filter throws an UnavailableException, then the container will make no further attempt to execute it. Answer: C QUESTION: 264 Your IT department is building a lightweight Front Controller servlet that invokes an application logic object with 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 Front Controller servlet looks up the JSP URL in a configuration table. This URL might be an absolute path or a path relative to the current request. Next, the Front Controller servlet must send the request to this JSP to generate the view. Assume that the servlet variable request is assigned the current HttpServletRequest object and the variable context is assigned the webapp's ServletContext. Which code snippet of the Front Controller servlet accomplishes this goal? D
Image of page 3
Image of page 4

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture