The JSP 1.2 specification extends JSP 1.1 in a number of ways:
Uses Servlet 2.3 as the foundation for its semantics.
Defines the XML syntax for JSPs.
Provides for translation-time validation of JSPs.
A new compilation phase has been added that gives custom tag libraries the opportunity to examine an XML view of the parsed page, and throw a translation time exception if problems are detected.
The ability for tag libraries to include event listener classes. The listeners are listed in the tag library descriptor and the JSP container automatically instantiates the listener classes and registers them in a similar way to web.xml. Essentially, the mechanism locates the TLDs in the Web Application (either in WEB-INF/classes or WEB-INF/lib), reads their <listener> elements, and regards them as an extension of those listed in web.xml.
Better specification of the tag handler contract – tag handlers are Java classes that implement specific servlet interfaces. JSP 1.2 introduces some new interfaces and changes some existing interfaces to provide better support.
Improvements on authoring support – extends tag library functionality.
Better I18N support – implements the javax.servlet.ServletResponse.setContentType()
method
to provide support for dynamic content-type.
Fixes the “flush before you include” limitation in JSP 1.1.
For detailed information about JavaServer Pages technology, see the Java software Web site.
Copyright © 2005. Sybase Inc. All rights reserved. |