Coffee Cram: Mock Exam Chapter 7

  1. Given this DD element:

    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.

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

    A.

    <%@ page type="image/svg" %>

    B.

    <%@ page mimeType="image/svg" ...

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.