hello.tld
来自「《jsp网络编程技术与实例》」· TLD 代码 · 共 84 行
TLD
84 行
<?xml version="1.0" encoding="UTF-8" ?>
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd"
version="2.0">
<description>My taglib example.</description>
<display-name>mytag lib</display-name>
<tlib-version>1.1</tlib-version>
<short-name>m</short-name>
<uri>/mytag</uri>
<tag>
<description>
Print Hello,Tag World!
</description>
<name>hello</name>
<tag-class>mytag.HelloWorldTag</tag-class>
<body-content>empty</body-content>
</tag>
<tag>
<description>
Print out System time.
</description>
<name>timeloop</name>
<tag-class>mytag.MyBodyTag</tag-class>
<body-content>jsp</body-content>
<attribute>
<name>number</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Print parent's value.
</description>
<name>in</name>
<tag-class>mytag.InTag</tag-class>
<body-content>empty</body-content>
</tag>
<tag>
<description>
Out tag.
</description>
<name>out</name>
<tag-class>mytag.OutTag</tag-class>
<body-content>jsp</body-content>
<attribute>
<name>print</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>content</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Iter tag.
</description>
<name>iter</name>
<tag-class>mytag.IterTag</tag-class>
<tei-class>mytag.IterInfo</tei-class>
<body-content>jsp</body-content>
<attribute>
<name>vector</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>true</required>
</attribute>
<attribute>
<name>type</name>
<required>true</required>
</attribute>
</tag>
</taglib>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?