jsp自定標籤tld文件

 <?xml version="1.0" encoding="UTF-8"?>
<taglib version="2.0" xmlns=" http://java.sun.com/xml/ns/j2ee "
 xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance "
 xsi:schemaLocation=" http://java.sun.com/sml/ns/j2ee   web-jsptaglibrary_2_0.xsd">
 <tlib-version>1.0</tlib-version>
 <jsp-version>1.1</jsp-version>
 <shortname>p</shortname>
 <uri>www.zhuleishitou.com/dopage</uri>
 <tag>
  <!-- 標籤名 -->
  <name>page</name>
  <!-- 對應標籤的處理類(徹底限定名) -->
  <tag-class>com.zhulei.taglib.DoPageTag</tag-class>

  <!-- 標籤主體的類型 --> html

 <!--empty表示爲空不能加內容(即<input />),jsp表示內容爲jsp,tagdependent表示內容由標籤去解析-->
java

  <bodycontent>empty</bodycontent>
  <!-- 當前頁號的屬性描述信息 -->
  <attribute>
   <!-- 屬性名 -->
   <name>pageNo</name>
   <!-- 該屬性是否爲必要的 -->
   <required>true</required>
   <!-- 屬性值是否能夠在jsp運行使其的動態產生 -->
   <rtexprvalue>true</rtexprvalue>
   <type>int</type>
  </attribute>
  <attribute>
   <!-- 總記錄數屬性描述信息 -->
   <name>recordCount</name>
   <required>true</required>
   <rtexprvalue>true</rtexprvalue>
   <type>int</type>
  </attribute>
  <!-- 總頁數屬性的描述信息 -->
  <attribute>
   <name>pageSize</name>
   <required>true</required>
   <rtexprvalue>true</rtexprvalue>
   <type>int</type>
  </attribute>
  <attribute>
   <name>url</name>
   <required>true</required>
   <rtexprvalue>true</rtexprvalue>
   <type>java.lang.String</type>
  </attribute>
 </tag>

</taglib> web


http://blog.sina.com.cn/s/blog_4b5bc01101010knj.html
jsp

相關文章
相關標籤/搜索