The taglib tag is the document root, it defines: description a simple string describing the "use" of this taglib, should be user discernable display-name the display-name element contains a short name that is intended to be displayed by tools icon optional icon that can be used by tools tlib-version the version of the tag library implementation short-name a simple default short name that could be used by a JSP authoring tool to create names with a mnemonic value; for example, the it may be used as the prefered prefix value in taglib directives uri a uri uniquely identifying this taglib validator optional TagLibraryValidator information listener optional event listener specification tag tags in this tag library tag-file tag files in this tag library function zero or more EL functions defined in this tag library taglib-extension zero or more extensions that provide extra information about this taglib, for tool consumption
<tag>
......
</tag>
<function>
...........
</function>这里写的function是和tag放在同一文件的,结果是没有用.而我把function分开放到一个单独的tld里面去就有用了
taglib, should be user discernable display-name the display-name element contains a
short name that is intended to be displayed
by tools icon optional icon that can be used by tools tlib-version the version of the tag library implementation short-name a simple default short name that could be
used by a JSP authoring tool to create
names with a mnemonic value; for example,
the it may be used as the prefered prefix
value in taglib directives uri a uri uniquely identifying this taglib validator optional TagLibraryValidator information listener optional event listener specification tag tags in this tag library tag-file tag files in this tag library function zero or more EL functions defined in this
tag library taglib-extension zero or more extensions that provide extra
information about this taglib, for tool
consumption