freemarker遍历数组

来源:互联网 发布:神舟笔记本知乎 编辑:程序博客网 时间:2024/05/08 07:28

freemarker

<#list nodeList as node>
${node}

</#list>

在Action有summary={"a","b"};

get、set summary方法

页面上显示

<#list summary as su>

<input type="text" name="button" value="${su}" /><br/>
</#list>

会输出 a b




原创粉丝点击