You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2014/12/15 11:42:13 UTC
[jira] [Comment Edited] (WW-4432) The %{#attr.counter.index} is
not working
[ https://issues.apache.org/jira/browse/WW-4432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14246528#comment-14246528 ]
Lukasz Lenart edited comment on WW-4432 at 12/15/14 10:41 AM:
--------------------------------------------------------------
Please don't use empty value, instead use this:
{code:xml}
<constant name="struts.excludedPackageNamePatterns" value="^java\.lang\..*,^ognl.*,^(?!javax\.servlet\..+)(javax\..+)" />
{code}
was (Author: lukaszlenart):
Please don't use empty value, instead use this:
{code:xml}
<constant name="struts.excludedPackageNamePatterns" value="^java\.lang\..*,^ognl.*" />
{code}
> 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
> {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)