The JSTL 1.0 Examples

The original JSTL examples imported in OpenCms.

What is the JSTL?

JSTL stands for JSP Standard Tag Library and is an upcoming standard for a set of JSP taglibs that will be available on any standard - compliant JSP container in the future. Because of this, it is vital that OpenCms seamlessly integrates with this standard. To test, ensure and show this compatibility, the JSTL examples have been imported into OpenCms and included here.

The current JSTL version is 1.0. JSTL 1.0 will be included in the JSP 2.0 release and thus be available in all future standard compliant servlet containers. The first version of Tomcat to support JSP 2.0 (and thus support the JSTL) is Tomcat 5.

This module contains version 1.0.3 of the JSTL.

Notes:

  • The JSTL examples need some extra jars for all functionality to work. All of these jars are included in this module and are exported to the WEB-INF/lib folder the OpenCms webapp context. The jars added for JSTL support are:
    dom.jar
    jaxen-full.jar
    jaxp-api.jar
    jdbc2_0-stdext.jar
    jstl.jar
    standard.jar
    sax.jar
    saxpath.jar
    xalan.jar
    jstl-examples.jar (only required for the examples)
  • You must restart OpenCms / Tomcat after the initial import of this module to load these additional jars, or the examples will not work.
  • None of the standard classes or libraries (jars) has been modified to work with OpenCms. The resources for the jstl-examples-taglib have been bundled in the jst-examples.jar so that no web.xml modification is required.
  • The original examples do set some server context variables using application filters configured in the web.xml. To make this examples run without changing the webapp configuration, this variables have been moved into the index_content.html JSP file of the JSTL example directory (view source).
]]>