ITeye博客

struts

共 1 篇文章

关于struts 标签 iterator 的用法

1. value属性:可选的属性,value属性是指一个被迭代的集合,使用ognl表达式指定,如果为空的话默认就是ValueStack栈顶的集合. 2.id属性:可选属性, 是指集合元素的id 3.status属性:可选属性,该属性在迭代时会产生一个IteratorStatus对象,该对象可以判断当前元素的位置,包含了以下属性方法: int getCount(); 迭代元素个数 int getIndex(); 迭代元素当前索引 boolean getFirst(); 是否为第一个 boolean getEven(); 是否为偶 boolean getLast(); 是否最后一个 bolean…

2012-08-28 09:49 · struts