📄 mytag.tld
字号:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<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>A tag library exercising SimpleTag handlers.</description>
<tlib-version>1.0</tlib-version>
<short-name>examples</short-name>
<uri>/demotag</uri>
<description>
A simple tab library for the examples
</description>
<tag>
<name>hello</name>
<tag-class>com.jspdev.ch14.HelloTag</tag-class>
<body-content>empty</body-content>
<description>
Simple hello world examples.
Takes no attribute,and simply generates HTML
</description>
</tag>
<tag>
<name>loop</name>
<tag-class>com.jspdev.ch14.BodyTagExample</tag-class>
<body-content>jsp</body-content>
<attribute>
<name>counts</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>if</name>
<tag-class>com.jspdev.ch14.IfTag</tag-class>
<body-content>jsp</body-content>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>out</name>
<tag-class>com.jspdev.ch14.OutTag</tag-class>
<body-content>jsp</body-content>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>file</name>
<tag-class>com.jspdev.ch14.FileTag</tag-class>
<body-content>empty</body-content>
<attribute>
<name>fileName</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>iterate</name>
<tag-class>com.jspdev.ch14.IterateTag</tag-class>
<tei-class>com.jspdev.ch14.IterateTEI</tei-class>
<body-content>jsp</body-content>
<attribute>
<name>collection</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>
<tag>
<description>Outputs Hello, World</description>
<name>helloWorld</name>
<tag-class>com.jspdev.ch14.HelloWorldSimpleTag</tag-class>
<body-content>empty</body-content>
</tag>
<tag>
<description>Outputs Hello, World,从实现Tag接口起开发</description>
<name>hello_int</name>
<tag-class>com.jspdev.ch14.HelloTag_Interface</tag-class>
<body-content>empty</body-content>
</tag>
</taglib>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -