---
title: "struts2.0标签"
author: "825197453"
date: "2009-06-23T16:26:37Z"
tags: []
slug: "struts2-0"
draft: false
lastmod: "2009-06-23T16:26:37Z"
id: 413613
url: "https://825197453.iteye.com/blog/413613"
---

查看文章    
struts2标签 Iterator2009-05-20 14:22<s:iterator id="obj" value="list" status="index">



<!---输出当前元素的属性-->

<s:property value="property"/>


<!---输出当前迭代元素的索引-->

<s:property value="#index.index"/>


<!---输出当前迭代了几个元素-->

<s:property value="#index.count"/>


<!---返回当前迭代元素的索引是否为奇数-->

<s:property value="#index.odd"/>


<!---返回当前迭代元素的索引是否为偶数-->

<s:property value="#index.event"/>


<!---返回当前元素是否为第一个-->

<s:property value="#index.first"/>


<!---返回当前元素是否为最后一个-->

<s:property value="#index.last"/>


<!---返回当前元素下标-->

<s:property value="#index.getCount()" />



</s:iterator>