/ Published in: Java
URL: http://freemarker.org/docs/app_faq.html#faq_question_14
Iterating through a map in Freemarker. We have the tags ?keys and ?values which will give the keyset and valueset respectively. One thing we have to be carefull is if we have to use map[key] the key should be a string
Expand |
Embed | Plain Text
<#list map?keys as key> ${key} - ${map[key]} </#list>
You need to login to post a comment.
