Show TOC Start of Content Area

Procedure documentation Configuring JSP Tag Libraries  Locate the document in its SAP Library structure

Use

You have to configure your JSP tag libraries as part of your Web application so that you can use the custom tags they implement in your JSP code. The configuration consists of defining a name that the tag library is referenced with and specifying the location of the Tag Library Descriptor that describes the custom tags. You specify this in the web.xml descriptor of your Web application.

Procedure

On the right-hand side of the web.xml screen, proceed as follows:

...

       1.      Open the Others screen.

       2.      Select Tag-Libs and then choose Add to add new tag library entry to the tree.

       3.      Select the tag library from the tree structure and enter the tag library URI and the location of the Tag Library Descriptor in the Taglib URI and Taglib Location fields. The tag library URI identifies the tag library and must be specified relative to the WEB-INF directory of the Web application. If you want to deploy the tag library that is packaged as a JAR file, you must specify the location of that JAR file in this field. The location of the tag library descriptor file is specified relative to the Web application’s root.

For more information about configuring JSP tag libraries see the description of the <!ELEMENT taglib (taglib-uri, taglib-location)> element of the web.xml DTD in the Java ÔServlet 2.3 Specification.

 

See also:

 

Developing Custom JSP Tag Libraries

End of Content Area