如何用struts中的标签?

goursat 2003-12-12 01:09:25
<logic:iterate>中的name,id啊?3x
...全文
11 6 打赏 收藏 举报
写回复
6 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
goursat 2003-12-12
分数都已经给了,showXP用英语回答,如果我能看懂意思的话,何必问呢,对把?呵呵!
所以不好意思,只给了10分.
希望大家以后多多支持我哦!3x.
  • 打赏
  • 举报
回复
goursat 2003-12-12
RT EXPR是什么意思啊?
  • 打赏
  • 举报
回复
qjhaaaaa 2003-12-12
http://expert.csdn.net/Expert/topic/2344/2344902.xml?temp=.1577722
楼主看看这个帖子
这是我发的帖子,后来解决了,看看如果有什么问题发个短消息ok
  • 打赏
  • 举报
回复
showerXP 2003-12-12
<logic:iterate id="element" name="myhashtable">
Next element is <bean:write name="element" property="value"/>
</logic:iterate>

Attribute Name Description
collection A runtime expression that evaluates to a collection (conforming to the requirements listed above) to be iterated over.

(RT EXPR)
id The name of a page scope JSP bean that will contain the current element of the collection on each iteration, if it is not null.

(REQUIRED)
indexId The name of a page scope JSP bean that will contain the current index of the collection on each iteration.

length The maximum number of entries (from the underlying collection) to be iterated through on this page. This can be either an integer that directly expresses the desired value, or the name of a JSP bean (in any scope) of type java.lang.Integer that defines the desired value. If not present, there will be no limit on the number of iterations performed.

(RT EXPR)
name The name of the JSP bean containing the collection to be iterated (if property is not specified), or the JSP bean whose property getter returns the collection to be iterated (if property is specified).

(RT EXPR)
offset The zero-relative index of the starting point at which entries from the underlying collection will be iterated through. This can be either an integer that directly expresses the desired value, or the name of a JSP bean (in any scope) of type java.lang.Integer that defines the desired value. If not present, zero is assumed (meaning that the collection will be iterated from the beginning.

(RT EXPR)
property Name of the property, of the JSP bean specified by name, whose getter returns the collection to be iterated.

(RT EXPR)
scope The bean scope within which to search for the bean named by the name property, or "any scope" if not specified.

(RT EXPR)
type Fully qualified Java class name of the element to be exposed through the JSP bean named from the id attribute. If not present, no type conversions will be performed. NOTE: The actual elements of the collection must be assignment-compatible with this class, or a request time ClassCastException will occur.

(RT EXPR)
  • 打赏
  • 举报
回复
zawx 2003-12-12
属性 描述
collection 如果没有设置name属性,它就指定了要进行重复的集合
Id 页作用域bean和脚本变量的名称,它保存着集合中当前元素的句柄 indexed 页作用域JSP bean的名称,它包含着每次重复完成后集合的当前索引 Length 重复的最大次数
Name 作为集合的bean的名称,或是一个bean名称,它由property属性定义的属性,是个集合 Offset 重复开始位置的索引
property 作为集合的Bean属性的名称
Scope 如果指定了bean名称,这个属性设置bean的作用域。若没有设置,搜索范围从页到应用程序作用域
Type 为当前定义的页作用域bean的类型
  • 打赏
  • 举报
回复
goursat 2003-12-12
就是name,id分别代表的意思是什么?
  • 打赏
  • 举报
回复
相关推荐
发帖
Java EE
加入

6.7w+

社区成员

J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
申请成为版主
帖子事件
创建了帖子
2003-12-12 01:09
社区公告
暂无公告