Coffee Cram: Chapter 14 Answers

  1. Given this list of attributes:

    - related to Intercepting Filter

    - supports role separation between developers

    - adds reusability

    (Core J2EE Patterns, pg. 180)

    Which design pattern is being described?

    A.

    Transfer Object

    B.

    Service Locator

    C.

    Front Controller

    D.

    Business Delegate

    Note

    -This pattern (among others), helps separate the tasks performed by application developers from the tasks performed by web designers.

  2. The design of your web application calls for certain security measures to be taken for every request received. Some of these security checks will be applied, regardless of the type of request.

    Which design pattern can be used to achieve this design requirement?

    (Core J2EE Patterns, pg. 144)

    A.

    Transfer Object

    B.

    Service Locator

    C.

    Composite Entity

    D.

    Business Delegate

    E.

    Intercepting ...

Get Head First Servlets and JSP, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.