mytaglib.tld
来自「說明JSP平台、開發環境」· TLD 代码 · 共 105 行
TLD
105 行
<?xml version="1.0" encoding="BIG5" ?>
<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 http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
version="2.0">
<description>A tag library implementing Simple Tag handlers.</description>
<tlib-version>1.0</tlib-version>
<short-name>My Tag Library</short-name>
<uri>/myTagLib</uri>
<tag>
<description>Outputs Hello, name!</description>
<name>sayHello</name>
<tag-class>taglib.sayHelloTag</tag-class>
<body-content>empty</body-content>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>Get maximum for SimpleTagSupport</description>
<name>getSimpleMax</name>
<tag-class>taglib.maximumSimpleTag</tag-class>
<body-content>empty</body-content>
<attribute>
<name>x</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>y</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>repeat 'n' times to change size</description>
<name>changeSize</name>
<tag-class>taglib.changeSizeTag</tag-class>
<body-content>scriptless</body-content>
<variable>
<description>enlarged size (1 to num)</description>
<name-given>size</name-given>
</variable>
<attribute>
<name>num</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>Get maximum for TagSupport</description>
<name>getMax</name>
<tag-class>taglib.maximumTag</tag-class>
<body-content>empty</body-content>
<attribute>
<name>x</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>y</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<function>
<description>Converts the string to uppercase</description>
<name>uCase</name>
<function-class>el.elFunction</function-class>
<function-signature>
java.lang.String uCase(java.lang.String)
</function-signature>
</function>
<function>
<description>Converts the string to lowercase</description>
<name>lCase</name>
<function-class>el.elFunction</function-class>
<function-signature>
java.lang.String lCase(java.lang.String)
</function-signature>
</function>
<function>
<description>Judge whether x contains y</description>
<name>contain</name>
<function-class>el.elFunction</function-class>
<function-signature>
java.lang.Boolean contain(java.lang.String, java.lang.String)
</function-signature>
</function>
<function>
<description>Reverse the string</description>
<name>reverse</name>
<function-class>el.elFunction</function-class>
<function-signature>
java.lang.String reverse(java.lang.String)
</function-signature>
</function>
</taglib>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?