自定义标签---TLD约束文件格式说明

<tag>
  <name>simpledemo1</name> --标签的名字

  <tag-class>com.itheima.simpletag.SimpleDemo1</tag-class> --标签的处理类

  <body-content>scriptless</body-content> -- 标签体的类型
        - JSP(简单标签不能写)
        - Scriptless(任意的jsp内容,不包括java代码) 
        - empty(空标签)
        - tagdependent(标签体是给后台用的,一般不用这种类型)

  <attribute>--添加标签属性

    <name>times</name> -- 属性的名字
    <required>true</required> -- 是否为必须存在的属性
    <rtexprvalue>true</rtexprvalue> -- 是否支持EL表达式 是:true 否:false     
    <type>int</type> -- 属性的java类型

  </attribute>

 </tag>
原文地址:https://www.cnblogs.com/shiguangmanbu2016/p/5932917.html