struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-4432) The %{#attr.counter.index} is not working
Date Mon, 15 Dec 2014 10:30:13 GMT

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

Lukasz Lenart updated WW-4432:
------------------------------
    Fix Version/s:     (was: 2.3.20)
                   2.3.x

>  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
>    Affects Versions: 2.3.20
>            Reporter: Alireza Fattahi
>             Fix For: 2.3.x
>
>
> Below code is not working in struts 2.3.20
>  <c:forTokens items="${images}" delims="," var="imagevar" varStatus="counter" begin="1">
                   
> <s:text name="site.intro.intro%{#attr.counter.index}.caption"/>        
> </c:forTokens>
> The %{#attr.counter.index} is not returning any value and no exception is thrown in the
log the below message is shown:
> 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!
> When I set struts.excludedPackageNamePatterns to empty, it works!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message