开发者

How can I use freemarker variable inside JSP tag?

开发者 https://www.devze.com 2023-01-21 11:30 出处:网络
I would like to use variable calculated in freemarker inside Struts tag. How can I do this in following situation:

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

精彩评论

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

关注公众号