读书人

请问JSP自定义标签中的SimpleTagSuppo

发布时间: 2012-11-14 10:12:18 作者: rapoo

请教JSP自定义标签中的SimpleTagSupport和TagSupport与BodyTagSupport
今天在网上搜索自定义标签,搜到TagSupport与BodyTagSupport
和SimpleTagSupport这两种类型

我要为项目中 特定代码的判断 开发个通用的标签,但是不知道应该使用哪种呢

1。他们之间的区别是什么? 在网上没有搜到同时讲两个的。

2。看到项目中原有的标签是用的是TagSupport,又看到网上说SimpleTagSupport是2.0新增的类,但是我不知道是用哪种比较好呢?

以下是我搜到的网址
http://hi.baidu.com/java__sc/blog/item/56396d3eb33e8b3d70cf6c02.html
http://blog.csdn.net/newould/archive/2006/09/12/1214509.aspx?Pending=true

<jspversion>1.1</jspversion>[/b]
<shortname>Application Tag Library</shortname>
<uri>http://localhost/cssystem</uri>
<info>This tag library contains functionality specific to the PICCZB Application.</info>

把[b]

 <jspversion>1.1</jspversion>
[/b]
换成[b]
 <jspversion>2.0</jspversion>
[/b]

会不会有影响呢?

读书人网 >JavaScript

热点推荐