The declarations section correspond to the declaration elements.
The contents of this section is determined by concatenating all the declarations in the page in
the order in which they appear.
This section defines and initializes the implicit objects available to the JSP page. See
Section 2.8, Implicit Objects .
This section provides the main mapping between a request and a response object.
The contents of code segment 2 is determined from scriptlets, expressions, and the text body
of the JSP page. These elements are processed sequentially; a translation for each one is
determined as indicated below, and its translation is inserted into this section. The translation
depends on the element type:
is transformed into code that will place the template data into the stream
currently named by the implicit variable
. All white space is preserved.
Ignoring quotation issues and performance issues, this corresponds to a statement of the
is transformed into its Java statement fragment.
is transformed into a Java statement to insert the value of the expression,
if needed, into the stream currently named by the
. No additional newlines or space is included.
Ignoring quotation and performance issues, this corresponds to a statement of the form: