XML Syntax in JSP

Summary of "first batch" Changes

JSP 1.2 has made the XML view of a JSP page available for input, as well as for validation. Below is a summary of the first batch changes that were made to Jasper to support this new feature of the JSP specification.

New Classes

All in org.apache.jasper.compiler

ParserController

 * Controller for the parsing of a JSP page.
 * 

* A translation unit (JSP source file and any files included via the * include directive) may involve the processing of JSP pages * written with different syntaxes (currently the original JSP syntax, * as well as the XML syntax (as of JSP 1.2)). This class encapsulates * the behavior related to the selection and invocation of * the proper parser.

ParserXJspSax

 * SAX Parser to handle XJsp syntax.

ParserXJspSaxHandler

 * The SAX (2.0) parser event handler.

XmlOutputter

 * Class responsible for generating the XML stream representing
 * the JSP translation unit being compiled.

PageInfoImpl

 * Implementation of abstract class javax.servlet.jsp.tagext.PageInfo.

Classes Modified

All in org.apache.jasper.compiler

Compiler

ParseEventListener

BaseJspListener

DelegatingListener

JspParseEventListener

Parser

JspReader

Mark

TagLibraries

TagLibraryInfoImpl