[jira] Created: (WW-3314) iterator tag: begin/end does not work as documented.

View: New views
3 Messages — Rating Filter:   Alert me  

[jira] Created: (WW-3314) iterator tag: begin/end does not work as documented.

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

iterator tag: begin/end does not work as documented.
----------------------------------------------------

                 Key: WW-3314
                 URL: https://issues.apache.org/struts/browse/WW-3314
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.1.8
         Environment: MyEclipse 7.5 on Windows XP, JBoss AS 4, Tomcat 6
            Reporter: Volker Karlmeier


When using iterator tag with begin and end attributes, iterator always starts with 0 and ends with end-begin.
Example

<s:iterator begin="2" end="9" step=1">

counts from 0 to 7 instead of 2 to 9


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WW-3314) iterator tag: begin/end does not work as documented.

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/struts/browse/WW-3314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso resolved WW-3314.
---------------------------------

    Resolution: Cannot Reproduce

<s:iterator begin="2" end="9" step="1" var="val">
     <s:property value="%{#val}"/> <br/>
 </s:iterator>

Prints:

2
3
4
5
6
7
8
9

> iterator tag: begin/end does not work as documented.
> ----------------------------------------------------
>
>                 Key: WW-3314
>                 URL: https://issues.apache.org/struts/browse/WW-3314
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.8
>         Environment: MyEclipse 7.5 on Windows XP, JBoss AS 4, Tomcat 6
>            Reporter: Volker Karlmeier
>
> When using iterator tag with begin and end attributes, iterator always starts with 0 and ends with end-begin.
> Example
> <s:iterator begin="2" end="9" step=1">
> counts from 0 to 7 instead of 2 to 9

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-3314) iterator tag: begin/end does not work as documented.

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ https://issues.apache.org/struts/browse/WW-3314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47037#action_47037 ]

Volker Karlmeier commented on WW-3314:
--------------------------------------

Hi,

tried it that way:

<s:iterator begin="2" end="9" step="1" status="status">
     <s:property value="#status.index"/> <br/>
 </s:iterator>

My fault. Sorry

> iterator tag: begin/end does not work as documented.
> ----------------------------------------------------
>
>                 Key: WW-3314
>                 URL: https://issues.apache.org/struts/browse/WW-3314
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.8
>         Environment: MyEclipse 7.5 on Windows XP, JBoss AS 4, Tomcat 6
>            Reporter: Volker Karlmeier
>
> When using iterator tag with begin and end attributes, iterator always starts with 0 and ends with end-begin.
> Example
> <s:iterator begin="2" end="9" step=1">
> counts from 0 to 7 instead of 2 to 9

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.