You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Haroon Rafique <ha...@utoronto.ca> on 2007/10/28 15:00:03 UTC

Re: [SOLVED] freemarker static method call using stack.findValue and @@

On Today at 9:51am, HR=>Haroon Rafique <ha...@utoronto.ca> wrote:

HR> [..snip..]
HR> 
HR> However, if I start using variables instead of values like 222, 555, e.g.:
HR> 	${stack.findValue("@@min(555, input)")}
HR> where input is defined as:
HR> 	<#assign input="222"/>
HR> 
HR> I get the exception:
HR> 
HR> freemarker.core.InvalidReferenceException: Expression
HR> stack.findValue("@@min(555, input)") is undefined
HR> 
HR> Anyone have any similar experiences? Words of wisdom? I must be missing
HR> something simple.
HR> 
HR> I have tried using #input but that didn't work either.
HR> 

Go figure... As soon as I post the email, I figured it out (5 minutes 
later).

Use:
	stack.findValue("@@min(555, ${input})")

Works for me.

Sorry for the noise.
--
Haroon Rafique
<ha...@utoronto.ca>


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