O'Reilly logo

Head First Servlets and JSP, 2nd Edition by Bert Bates, Bryan Basham, Kathy Sierra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required