The %{#attr.counter.index} is not working in 2.3.20

2014-12-15 Thread Alireza Fattahi
Below code is not working in struts 2.3.20                                       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.LoopTagSup

Re: The %{#attr.counter.index} is not working in 2.3.20

2014-12-15 Thread Lukasz Lenart
2014-12-15 9:04 GMT+01:00 Alireza Fattahi : > Below code is not working in struts 2.3.20 > varStatus="counter" begin="1"> name="site.intro.intro%{#attr.counter.index}.caption"/> > The %{#attr.counter.index} is not returning any value and no exception is > throw

Re: The %{#attr.counter.index} is not working in 2.3.20

2014-12-15 Thread Lukasz Lenart
2014-12-15 9:15 GMT+01:00 Lukasz Lenart : > 2014-12-15 9:04 GMT+01:00 Alireza Fattahi : >> Below code is not working in struts 2.3.20 >> > varStatus="counter" begin="1">> name="site.intro.intro%{#attr.counter.index}.caption"/> >> The %{#attr.counter.index} is not

Re: The %{#attr.counter.index} is not working in 2.3.20

2014-12-15 Thread Alireza Fattahi
Thanks. Issue created https://issues.apache.org/jira/browse/WW-4432   ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users Mailing List Sent: Monday, 15 December 2014, 12:00 Subject: Re: The %{#attr.counter.index} is not working in 2.3.20 2014-12-15 9:15 GMT+01:00 Lukasz

Re: The %{#attr.counter.index} is not working in 2.3.20

2014-12-15 Thread Lukasz Lenart
Thanks! Don't use empty value, this is better: 2014-12-15 11:25 GMT+01:00 Alireza Fattahi : > Thanks. Issue created https://issues.apache.org/jira/browse/WW-4432 > ~Regards, > ~~Alireza Fattahi > From: Lukasz Lenart > To: Struts Users Mailing List > Sent: Monday, 15 December 2014, 1

OGNL is used to call action's methods

2014-12-15 Thread Alireza Fattahi
I used below strategy for error manager: All actions can throw exception.There is a Error Manager Interceptor which catch all exceptions and convert them to a json message and return it.        try {            return invocation.invoke();        } catch (Exception ex) {                 //Make so

Re: OGNL is used to call action's methods

2014-12-15 Thread Lukasz Lenart
2014-12-15 13:17 GMT+01:00 Alireza Fattahi : > I used below strategy for error manager: > All actions can throw exception.There is a Error Manager Interceptor which > catch all exceptions and convert them to a json message and return it. > try {return invocation.invoke();

Re: OGNL is used to call action's methods

2014-12-15 Thread Alireza Fattahi
I checked and it was no same method name. Do you suggest I check other places too ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users Mailing List Sent: Monday, 15 December 2014, 15:51 Subject: Re: OGNL is used to call action's methods 2014-12-15 13:17 GMT+01:00 Alirez

Re: OGNL is used to call action's methods

2014-12-15 Thread Lukasz Lenart
2014-12-15 13:59 GMT+01:00 Alireza Fattahi : > I checked and it was no same method name. Do you suggest I check other places > too ~Regards, > ~~Alireza Fattahi Check inheritance tree - it was known problem Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ -

Re: OGNL is used to call action's methods

2014-12-15 Thread Alireza Fattahi
If the action ends without exception, every thing will work fine.How ever when the action throws the exception, we will face the and which I mentioned. I tried to review the code, and I find that if the action throws the exception the OgnlRuntime consume the exception and convert it to  Invocatio

Re: OGNL is used to call action's methods

2014-12-15 Thread Lukasz Lenart
I think it can be related to your problem as well https://issues.apache.org/jira/browse/WW-4433 do you use the Convention Plugin? 2014-12-15 16:05 GMT+01:00 Alireza Fattahi : > If the action ends without exception, every thing will work fine.How ever > when the action throws the exception, we wi