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

来源:互联网 发布:java类库是什么 编辑:程序博客网 时间:2024/06/05 00:41
<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>
0 0
原创粉丝点击