ITeye博客

.tld是什么文件

xiaoyixiao · 2015-04-02 16:24 · j2ee · 编程语言 · Markdown

tag标签的配置文件,假如你写了个tag名叫 public class testTag extends TagSupport{

//your code

}

之后你在tld文件里配置一下 

<tag>

  <name>testTag </name>

  <tag-class>

   testTag 

  </tag-class>

  <description>test</description>

  <attribute>

   <name>forward</name>

   <required>true</required>

   <rtexprvalue>true</rtexprvalue>

   <description>

    <![CDATA[

                 tag说明

             ]]>

   </description>

  </attribute>

  <attribute>

   <name>tag要传的参数</name>

   <required>true</required>

   <rtexprvalue>true</rtexprvalue>

   <description>

    <![CDATA[

            参数说明

            ]]>

   </description>

  </attribute>

 </tag>

 <tag>

之后在你的jsp文件了就可以调用了

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。