JSP.2.4 Quoting and Escape Conventions


The following quoting conventions apply to JSP pages. Anything else is not processed .

Quoting in Scripting Elements

- A literal "%>" is quoted by %\>

Quoting in Template Text

- A literal "<%" is quoted by <\%

Quoting in Attributes

- A ' is quoted as \'

- A " is quoted as \"

- A \ is quoted as \\

- A %> is quoted as %\>

- A <% is quoted as <\%

XML Representation

The quoting conventions are different from those of XML. Chapter JSP.7 describes the details of the transformation.



Java 2 Platform, Enterprise Edition. Platform and Component Specifications
Java 2 Platform, Enterprise Edition: Platform and Component Specifications
ISBN: 0201704560
EAN: 2147483647
Year: 2000
Pages: 399

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net