📄 taglib.tld
字号:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/web-JSPtaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>myTag</short-name>
<display-name>myTag</display-name>
<small-icon></small-icon>
<large-icon></large-icon>
<description>simple hello tags tag
</description>
<tag>
<name>helloTag</name>
<tag-class>tag.HelloTag</tag-class>
<body-content>empty</body-content>
<small-icon></small-icon>
<large-icon></large-icon>
<description></description>
<example></example>
</tag>
<tag>
<name>attributeHelloTag</name>
<tag-class>tag.AttributeHelloTag</tag-class>
<body-content>empty</body-content>
<small-icon></small-icon>
<large-icon></large-icon>
<description></description>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>sex</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>boolean</type>
</attribute>
<example></example>
</tag>
<tag>
<name>logo</name>
<!-- make sure to use the fully qualifed class name -->
<tag-class>tag.LogoBodyTag</tag-class>
<body-content>JSP</body-content>
<description>This tag writes a logo inside the JSP.</description>
<attribute>
<name>heading</name>
<!-- The logo tag requires this attribute -->
<required>true</required>
<!-- The attribute can take a JSP expression as a value -->
<rtexprvalue>true</rtexprvalue>
<description>The heading level for the logo; 1 through 6.
</description>
</attribute>
<attribute>
<name>image</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<description>The image name for the logo.</description>
</attribute>
<attribute>
<name>width</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<description>The image width for the logo.</description>
</attribute>
<attribute>
<name>height</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<description>The image height for the logo.</description>
</attribute>
</tag>
<tag>
<name>Table</name>
<tag-class>tag.TableTag</tag-class>
<body-content>JSP</body-content>
<small-icon></small-icon>
<large-icon></large-icon>
<description></description>
<attribute>
<name>row</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<name>col</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<example></example>
</tag>
<tag>
<name>Content</name>
<tag-class>tag.ContentTag</tag-class>
<body-content>JSP</body-content>
<small-icon></small-icon>
<large-icon></large-icon>
<description></description>
<example></example>
</tag>
</taglib>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -