Installation guide
What’s New in iPlanet Web Server, Version 4.1
3
Creating a JSP Custom Tag Library
iPlanet Web Server 4.1 supports custom JSP tags. This section explains how to create a custom tag
library using a working example. The example includes the following directories and files under
the document root directory:
To create the test-tags.jar file, you must create a work area in which you build the tag library
and its associated handler classes. This work area contains the following directories and files:
Both sets of example files are provided with iPlanet Web Server 4.1 in the following directory:
server_root
/plugins/samples/servlets/taglibs
Step 1: Create the TLD File
You first need to write a tag library definition (TLD) file outlining the custom tags and their
associated handler classes. This TLD file is an XML 1.0 file.
/dtds/
web-jsptaglib_1_1.dtd
/jsps/
test-tags.jar
test-tags.jsp
workarea/taglibs/
./META-INF:
taglib.tld
./examples:
ExampleTagBase.class
ExampleTagBase.java
FooTag.class
FooTag.java
FooTagExtraInfo.class
FooTagExtraInfo.java
LogTag.class
LogTag.java