Saturday, August 4, 2007

how to iterate maps in FTL

instead of <#list> ... </#list>

you can try
<#assign mList=courseMap.keySet()/>

<#list mList as key>
...
</#list>

and to address members of the map:

<#list mList as key>

${courseMap[key]}

</#list>

No comments: