struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomi21 <tomitre...@gmail.com>
Subject Re: Method calls with ognl with ValueStack Objects as Parameters
Date Tue, 25 Nov 2008 14:08:25 GMT

Try:

    <struts:if test="%{test(index)} )">

test will look for a function with prototype 'getTest' in the value stack.


Alexander Baetz wrote:
> 
> Hi,
> 
> Following scenario: i have an object on the value-stack and a function 
> on the action named = "getTest". The function returns a boolean.
> 
> Now i want to do a struts-if like that:
> 
> <struts:if test="getTest( %{#myObject.index} )">
> 
> But this doesn't work. How can i use OGNL to call a function on the 
> stack using a parameter from the stack?
> 
> Greetings,
> Alexander
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Method-calls-with-ognl-with-ValueStack-Objects-as-Parameters-tp20680838p20681883.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message