`
xiaoyixiao
  • 浏览: 7705 次
社区版块
存档分类
最新评论

.tld是什么文件

    博客分类:
  • j2ee
jsp 
阅读更多

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics