Anatomy of a JSP

A JSP consists of two basic items: template data and JSP elements. Template data provides the static aspects, and JSP elements are used for the dynamic aspects of a JSP.

Template Data

Template data refers to the static HTML or XML content of the JSP. Although it is essential for the JSP presentation, it is relatively uninteresting from a JSP programming point of view.

Aside from the usual substitutions, such as those based on quoting and escape sequences, the template data is written verbatim as part of the JSP response.

JSP Elements

JSP elements represent the portion of the JSP that gets translated and compiled into a servlet by the JSP compiler. In syntax, JSP elements are similar to HTML elements in that they have a begin ...

Get Developing Enterprise Java Applications with J2EE™ and UML 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.