You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by niels <ni...@gmail.com> on 2008/01/09 15:51:05 UTC
struts2: sent value to freemarker template
I want to pass a value to my fielderror.ftl
lik this:
<s:fielderror>
<s:param name="foo" value="bar"/>
</s:fielderror>
Does someone knows how to retrief the value in de template?
${parameters.foo}
gives me the error:
freemarker.core.InvalidReferenceException: Expression Expression
parameters.foo is undefined
Thanks in advance,
NIELS
Re: struts2: sent value to freemarker template
Posted by zer0 <ze...@libertysurf.fr>.
I have the same trouble. Has anyone solve this problem ?
Thanks,
niels-15 wrote:
>
> I want to pass a value to my fielderror.ftl
>
> lik this:
>
> <s:fielderror>
> <s:param name="foo" value="bar"/>
> </s:fielderror>
>
>
>
> Does someone knows how to retrief the value in de template?
>
> ${parameters.foo}
>
> gives me the error:
> freemarker.core.InvalidReferenceException: Expression Expression
> parameters.foo is undefined
>
--
View this message in context: http://www.nabble.com/struts2%3A-sent-value-to-freemarker-template-tp14713516p16743959.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