diff --git a/core/src/main/java/org/apache/struts2/views/jsp/IteratorStatus.java b/core/src/main/java/org/apache/struts2/views/jsp/IteratorStatus.java index 3b1dbe4bf..cb48d0ffc 100644 --- a/core/src/main/java/org/apache/struts2/views/jsp/IteratorStatus.java +++ b/core/src/main/java/org/apache/struts2/views/jsp/IteratorStatus.java @@ -23,9 +23,30 @@ package org.apache.struts2.views.jsp; /** * The iterator tag can export an IteratorStatus object so that - * one can get information about the status of the iteration, such as - * the size, current index, and whether any more items are available. - * + * one can get information about the status of the iteration, such as: + * + *

Example

+ *
+ *   <s:iterator status="status" value='%{0, 1}'>
+ *      Index: <s:property value="%{#status.index}" /> <br />
+ *      Count: <s:property value="%{#status.count}" /> <br />  
+ *   </s:iterator>
+ * 
+ * + *

will print

+ *
+ *      Index: 0
+ *      Count: 1
+ *      Index: 1
+ *      Count: 2
+ * 
*/ public class IteratorStatus { protected StatusState state;