Appendix A. Answers to the Quiz Questions

Quiz Answers for Day 1

A1:

From HTML pages, you saw the history of JSP traced through Java, JavaScript, Java applets, Java servlets, and then to JSP. All of those elements have left their mark on JSP programming.

A2:

You saw an overview of JSP scripting elements, comments, directives, and actions. Together, these make up the four different types of elements in JSP.

A3:

There are three different types of JSP scripting elements: scriptlets (for general code), declarations (which declare variables or methods), and expressions (which are evaluated and the result inserted into the Web page sent back to the browser).

A4:

Scriptlets are created with <% and %> tags, declarations with <%! and %> tags, and expressions ...

Get Sams Teach Yourself JavaServer Pages™ in 21 Days 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.