Coffee Cram: Mock Exam Chapter 9

  1. Which is true about TLD files?

    A.

    TLD files may be placed in any subdirectory of WEB-INF.

    B.

    TLD files are used to configure JSP environment attributes, such as scripting-invalid.

    C.

    TLD files may be placed in the META-INF directory of the WAR file.

    D.

    TLD files can declare both Simple and Classic tags, but TLD files are NOT used to declare Tag Files.

  2. Assuming the standard JSTL prefix conventions are used, which JSTL tags would you use to iterate over a collection of objects? (Choose all that apply.)

    A.

    <x:forEach>

    B.

    <c:iterate>

    C.

    <c:forEach>

    D.

    <logic:iterate>

    E.

    <logic:forEach> ...

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.