Name

<jsp-config>

Synopsis

The <jsp-config> element embeds most elements dealing JSP configuration. You must only use one element of this type in a deployment descriptor.

Syntax

<jsp-config>
  [<taglib>
    <taglib-uri>taglibURI</taglib-uri>
    <taglib-location>filePath</taglib-location>
   </taglib>]*
  [<jsp-property-group>
     [<description [xml:lang="lang"]>description</description>]*
     [<display-name [xml:lang="lang"]>displayName</display-name>]*
     [<icon [xml:lang="lang"]>
        [<small-icon>iconPath</small-icon>]
        [<large-icon>iconPath</large-icon>]
      </icon>]*
     <url-pattern>urlPattern</url-pattern>+
     [<el-ignored>true|false</el-ignored>]
     [<page-encoding>encoding</page-encoding>]
     [<scripting-invalid>true|false</scripting-invalid>]
     [<is-xml>true|false</is-xml>]
     [<include-prelude>filePath</include-prelude>]*
     [<include-coda>filePath</include-coda]*
   </jsp-property-group>]*
</jsp-config>

Nested <taglib> elements map the symbolic name for a tag library specified by the taglib directive in a JSP page to the location of the Tag Library Descriptor (TLD) file or JAR file that contains the TLD file. The <taglib-uri> element value must match the uri attribute value used in the JSP page and the <taglib-location> subelement contains the context-relative path to the library file:

<jsp-config>
  <taglib>
    <taglib-uri>orataglib</taglib-uri>
    <taglib-location>/WEB-INF/lib/orataglib_1_0.jar</taglib-location>
  </taglib>
</jsp-config>

With the introduction of the auto-discovery feature in JSP 1.2, this element is rarely needed. For more ...

Get JavaServer Pages, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.