struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Newfield <d...@newfield.org>
Subject Re: OGNL Qurey
Date Fri, 30 Jul 2010 03:31:42 GMT
On 7/29/10 11:23 PM, Zoran Avtarovski wrote:
> 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.

Yes.  To be more specific,
ActionContext.getContext().getValueStack().findValue(yourExpressionString)

Depending on what you're looking for, findString() might be helpful, too.

http://struts.apache.org/2.1.8.1/struts2-core/apidocs/com/opensymphony/xwork2/util/ValueStack.html

> That¹s fantastic and exactly what I was looking for.
>
> I¹ll try it this weekend.

Good luck!

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message