Contents | Prev | Next
Preface
All tags are case sensitive. A pair of single quotes is equivalent to a pair of double quotes. Spaces are not allowed between an equals sign and an attribute value.
The elements in a JSP page can be expressed in JSP syntax or XML syntax. The following rules apply:
- JSP and XML syntax cannot be mixed within a page.
- A page in one syntax can include or forward to a page in the other syntax.
- Some elements have attributes whose value can be computed at request time. In JSP syntax, the format of a value is the same as a JSP expression: <%= expression %>. In XML syntax, the format of the value is %= expression %.
Quoting Conventions
The following outlines quoting conventions for JSP pages expressed in JSP syntax.
Scripting Elements
Template Text
Attributes
- ' as \'. This is required within a single quote-delimited attribute value.
- " as \". This is required within a double quote-delimited attribute value.
- \ as \\
- %> as %\>
- <% as <\%
- ' and " can be used to indicate single and double quotes.
Typographic Conventions
code = fixed
|
bold = default
|
italics = user-defined
|
| = or
|
[ ] = optional
|
{ } = required choice
|
... = list of items
|
+ = can repeat
|
Contents | Prev | Next
Copyright © 2002, Sun Microsystems, Inc. All rights
reserved.