Download Red Hat NETSCAPE ENTERPRISE SERVER 6.1 - PROGRAMMER GUIDE TO SERVLETS Installation guide
Transcript
What’s New in iPlanet Web Server, Version 4.1 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: /dtds/ web-jsptaglib_1_1.dtd /jsps/ test-tags.jar test-tags.jsp 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: workarea/taglibs/ ./META-INF: taglib.tld ./examples: ExampleTagBase.class ExampleTagBase.java FooTag.class FooTag.java FooTagExtraInfo.class FooTagExtraInfo.java LogTag.class LogTag.java 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. 3