O'Reilly logo

Sams Teach Yourself JavaServer Pages™ in 21 Days by Steven Holzner

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

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

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