Hi Dale,

This sounds too easy, so I just want to clarify. From my action if I call
findValue(myExpressionString) and it will use OGNL to evaluate the
expression.

That¹s fantastic and exactly what I was looking for.

I¹ll try it this weekend.

Z.
> 
> On Thu, Jul 29, 2010 at 10:07 PM, Dale Newfield <d...@newfield.org> wrote:
>> > On 7/29/10 9:50 PM, Zoran Avtarovski wrote:
>>> >>
>>> >> What I want to know if there is a way for OGNL to evaluate the expression
>>> >> represented by the string through recursion?
>> >
>> > I see no reason you can't get a reference to the ValueStack object from
>> > within OGNL and call the findValue() method to make that happen.
> 
> That wasn't very clear.  What I should have said is that you could
> easily make an eval() method on your action that just grabs the
> ValueStack and calls findValue().
> 
> -Dale
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

Reply via email to