.tld是什么文件

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

//your code

}

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

<tag>

  <name>testTag </name>

  <tag-class>

   testTag 

  </tag-class>

  <description>test</description>

  <attribute>

扫描二维码关注公众号,回复: 854641 查看本文章

   <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文件了就可以调用了

猜你喜欢

转载自xiaoyixiao.iteye.com/blog/2198403
tld