[ https://issues.apache.org/jira/browse/WW-4312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lukasz Lenart updated WW-4312: ------------------------------ Description: I can't explain well so see below. Expected "1, 2, , 3," but the result was "1, 2, 2, 3,". Test.jsp {code:xml} , {code} I changed below class then it was fixed. org.apache.struts2.components.IteratorComponent#start {code:java} // if ((var != null) && (currentValue != null)) { <= Old. if (var != null) { // <= New. //pageContext.setAttribute(id, currentValue); //pageContext.setAttribute(id, currentValue, PageContext.REQUEST_SCOPE); putInContext(currentValue); } {code} was: I can't explain well so see below. Expected "1, 2, , 3," but the result was "1, 2, 2, 3,". Test.jsp ------------------------------------------------------------------- , ------------------------------------------------------------------- I changed below class then it was fixed. org.apache.struts2.components.IteratorComponent#start ------------------------------------------------------------------- // if ((var != null) && (currentValue != null)) { <= Old. if (var != null) { // <= New. //pageContext.setAttribute(id, currentValue); //pageContext.setAttribute(id, currentValue, PageContext.REQUEST_SCOPE); putInContext(currentValue); } ------------------------------------------------------------------- > A problem on Iterator tag > ------------------------- > > Key: WW-4312 > URL: https://issues.apache.org/jira/browse/WW-4312 > Project: Struts 2 > Issue Type: Bug > Components: Other > Affects Versions: 2.3.15 > Reporter: K OSSUser > Priority: Minor > Fix For: 2.5 > > > I can't explain well so see below. > Expected "1, 2, , 3," but the result was "1, 2, 2, 3,". > Test.jsp > {code:xml} > > > , > > > {code} > I changed below class then it was fixed. > org.apache.struts2.components.IteratorComponent#start > {code:java} > // if ((var != null) && (currentValue != null)) { <= Old. > if (var != null) { // <= New. > //pageContext.setAttribute(id, currentValue); > //pageContext.setAttribute(id, currentValue, PageContext.REQUEST_SCOPE); > putInContext(currentValue); > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)