开发者

How can I use freemarker variable inside JSP tag?

I would like to use variable calculated in freemarker inside Struts tag. How can I do this in following situation:

<#assign val0=100 />
<#assign val1=1000 />
<@s.select value="开发者_运维问答amount" name="amount" label="Amount" id="amount"
list=r"%{#{val0:'text100', val1:'text1000'}}"/>

Currently this select is empty.


You access custom variables the same way you access variables from the data model.

${val0}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜