`

JSP自定义标签

阅读更多

http://tech.ccidnet.com/art/3539/20070514/1080617_1.html

 

http://develop.csai.cn/web/200707061356581956.htm

 

//jsp2.0新的TAG特性

http://jspengxue.iteye.com/blog/41663

 

//TagSupport属性详解

http://whitesock.iteye.com/blog/162999

 

//jspx

http://www.iteye.com/news/4887

E语

http://jspx-bay.sourceforge.net/

 

//自制小例子,见附件

 

<jsp-config>
     <taglib>
   <taglib-uri>/spring</taglib-uri>
   <taglib-location>/WEB-INF/spring.tld</taglib-location>
  </taglib>
 </jsp-config> 

 TLD中的配置

<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee,http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
version="2.0">

<short-name>mvf</short-name>
    <uri>/dg</uri>
    <tlib-version>1.3</tlib-version>
 <tag>
  <name>hello</name>
        <tag-class>com.mvf.test.HelloWorldTag</tag-class>
        <body-content>empty</body-content>
 </tag>
</taglib>

注意逗号xsi:schemaLocation值的逗号!!!

 

//火狐书签...临时写这里而已

http://zhidao.baidu.com/question/28288964.html

http://www.91kb.cn/read-htm-tid-5238.html

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics