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

  1. Given this DD element:

    (JSP v2.0 pg 1-87)

    47. <jsp-property-group>
    48.   <url-pattern>*.jsp</url-pattern>
    49.   <el-ignored>true</el-ignored>
    50. </jsp-property-group>

    What does the element accomplish? (Choose all that apply.)

    A.

    All files with the specified extension mapping should be treated by the JSP container as well-formed XML files.

    B.

    All files with the specified extension mapping should have any Expression Language code evaluated by the JSP container.

    C.

    By default, all files with the specified extension mapping should NOT have any Expression Language code evaluated by the JSP container.

    D.

    Nothing, this tag is NOT understood by the container.

    E.

    Although this tag is legal, it is redundant, because the container behaves this way by default.

    Note

    -Option C turns off the evaluating of EL expressions by a JSP 2.0 container and by default the container does evaluate EL.

  2. Which directives specify an HTTP response that will be of type “image/svg”? (Choose all that apply.)

    (JSP ...

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