[ https://issues.apache.org/jira/browse/WW-4432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14260009#comment-14260009 ]
Hudson commented on WW-4432: ---------------------------- SUCCESS: Integrated in Struts-JDK7-pull-request #21 (See [https://builds.apache.org/job/Struts-JDK7-pull-request/21/]) WW-4432 Fixes access to javax.servlet package (lukaszlenart: rev ddac7f3a54917fd7249703e69c37ee96f79d27f7) * core/src/main/resources/struts-default.xml * core/src/test/java/org/apache/struts2/util/SecurityMemberAccessInServletsTest.java > The %{#attr.counter.index} is not working > ------------------------------------------ > > Key: WW-4432 > URL: https://issues.apache.org/jira/browse/WW-4432 > Project: Struts 2 > Issue Type: Bug > Components: XML Configuration > Affects Versions: 2.3.20 > Reporter: Alireza Fattahi > Assignee: Lukasz Lenart > Priority: Minor > Fix For: 2.3.21 > > > Below code is not working in struts 2.3.20 > {code:html} > <c:forTokens items="${images}" delims="," var="imagevar" varStatus="counter" > begin="1"> > <s:text name="site.intro.intro%{#attr.counter.index}.caption"/> > </c:forTokens> > {code} > The {{%\{#attr.counter.index\}}} is not returning any value and no exception > is thrown in the log the below message is shown: > {noformat} > WARN ognl.SecurityMemberAccess Package of target > [javax.servlet.jsp.jstl.core.LoopTagSupport$1Status@680cabbd] or package of > member [public int > javax.servlet.jsp.jstl.core.LoopTagSupport$1Status.getIndex()] are excluded! > {noformat} > When I set struts.excludedPackageNamePatterns to empty, it works! -- This message was sent by Atlassian JIRA (v6.3.4#6332)