cwp-taglib.tld Tag Library Descriptor file used by the custom tags in this chapter. <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"> <!-- a tag library descriptor --> <taglib> <!-- after this the default space is "http://java.sun.com/j2ee/dtds/jsptaglibrary_1_2.dtd" --> <tlibversion>1.0</tlibversion> <jspversion>1.1</jspversion> <shortname>cwp</shortname> <!-- ** CHANGED FROM "urn" TO "uri" IN TOMCAT 3.1 final ** --> <uri></uri> <info> A tag library from Core Web Programming Java 2 Edition, . </info> <!-- <tag> The name (after prefix) tag will have in JSP code <name>example</name> The actual class implementing tag. In Tomcat 3.1, it MUST be in a package. <tagclass>cwp.tags.ExampleTag</tagclass> Descriptive information about tag. <info>Simplest example: inserts one line of output</info> One of three values describing what goes between start and end tag. empty: no body JSP: body that is evaluated by container normally, then possibly processed by tag tagdependent: body is only processed by tag; JSP in body is not evaluated. ** NOTE: TOMCAT 3.1 FINAL DOES NOT SUPPORT BODYCONTENT ** ** THE BETA SUPPORTED IT, AND IT IS PART OF SPEC, BUT... ** <bodycontent>empty</bodycontent> </tag> --> <tag> <name>example</name> <tagclass>cwp.tags.ExampleTag</tagclass> <info>Simplest example: inserts one line of output</info> <!-- TOMCAT 3.1 DOES NOT SUPPORT BODYCONTENT <bodycontent>empty</bodycontent> --> </tag> <tag> <name>simplePrime</name> <tagclass>cwp.tags.SimplePrimeTag</tagclass> <info>Outputs a random 50-digit prime.</info> <!-- TOMCAT 3.1 DOES NOT SUPPORT BODYCONTENT <bodycontent>empty</bodycontent> --> </tag> <tag> <name>prime</name> <tagclass>cwp.tags.PrimeTag</tagclass> <info>Outputs a random N-digit prime.</info> <!-- TOMCAT 3.1 DOES NOT SUPPORT BODYCONTENT <bodycontent>empty</bodycontent> --> <attribute> <name>length</name> <required>false</required> </attribute> </tag> <tag> <name>heading</name> <tagclass>cwp.tags.HeadingTag</tagclass> <info>Outputs a 1-cell table used as a heading.</info> <!-- TOMCAT 3.1 DOES NOT SUPPORT BODYCONTENT <bodycontent>JSP</bodycontent> --> <attribute> <name>bgColor</name> <required>true</required> <!-- bgColor is required --> </attribute> <attribute> <name>color</name> <required>false</required> </attribute> <attribute> <name>align</name> <required>false</required> </attribute> <attribute> <name>fontSize</name> <required>false</required> </attribute> <attribute> <name>fontList</name> <required>false</required> </attribute> <attribute> <name>border</name> <required>false</required> </attribute> <attribute> <name>width</name> <required>false</required> </attribute> </tag> <tag> <name>debug</name> <tagclass>cwp.tags.DebugTag</tagclass> <info>Includes body only if debug param is set.</info> <!-- TOMCAT 3.1 DOES NOT SUPPORT BODYCONTENT <bodycontent>JSP</bodycontent> --> </tag> <tag> <name>filter</name> <tagclass>cwp.tags.FilterTag</tagclass> <info>Replaces HTML-specific characters in body.</info> <!-- TOMCAT 3.1 DOES NOT SUPPORT BODYCONTENT <bodycontent>JSP</bodycontent> --> </tag> <tag> <name>repeat</name> <tagclass>cwp.tags.RepeatTag</tagclass> <info>Repeats body the specified number of times.</info> <!-- TOMCAT 3.1 DOES NOT SUPPORT BODYCONTENT <bodycontent>JSP</bodycontent> --> <attribute> <name>reps</name> <required>true</required> <!-- rtexprvalue indicates whether attribute can be a JSP expression. --> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>if</name> <tagclass>cwp.tags.IfTag</tagclass> <info>if/condition/then/else tag.</info> <!-- TOMCAT 3.1 DOES NOT SUPPORT BODYCONTENT <bodycontent>JSP</bodycontent> --> </tag> <tag> <name>condition</name> <tagclass>cwp.tags.IfConditionTag</tagclass> <info>condition part of if/condition/then/else tag.</info> <!-- TOMCAT 3.1 DOES NOT SUPPORT BODYCONTENT <bodycontent>JSP</bodycontent> --> </tag> <tag> <name>then</name> <tagclass>cwp.tags.IfThenTag</tagclass> <info>then part of if/condition/then/else tag.</info> <!-- TOMCAT 3.1 DOES NOT SUPPORT BODYCONTENT <bodycontent>JSP</bodycontent> --> </tag> <tag> <name>else</name> <tagclass>cwp.tags.IfElseTag</tagclass> <info>else part of if/condition/then/else tag.</info> <!-- TOMCAT 3.1 DOES NOT SUPPORT BODYCONTENT <bodycontent>JSP</bodycontent> --> </tag> </taglib>
Aug 28