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

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.