Java Reference
In-Depth Information
Example 18−10: WEB-INF/tlds/decor_0_1.tld (continued)
<!-- The <tag> tag defines a single tag of the tag library -->
<tag>
<!-- First, define the tag name, implementation class, and description -->
<name>box</name>
<tagclass>com.davidflanagan.examples.servlet.DecorBox</tagclass>
<info>Display a colored box with a border</info>
<!-- Next, define each attribute that the tag supports -->
<!-- For each, specify the name, whether it is required, and whether -->
<!-- the tag value may be specified with a JSP <%= %> construct -->
<attribute>
<name>align</name> <!-- The 'align' attribute -->
<required>false</required> <!-- It is not required -->
<rtexprvalue>true</rtexprvalue> <!-- It may have a <%= %> value -->
</attribute>
<attribute>
<!-- Etc., etc., etc. -->
<name>color</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>borderColor</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>margin</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>borderWidth</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>title</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>titleColor</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>titleAlign</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
Search WWH ::




Custom Search