how to loop Map model?
"Zemian Deng" <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Hello,
Have inserted a java.util.Properties into template scope, how do I loop over
the map with all entries as key value pair?
I tried something like this, and it got error:
<#list Request.applicationProps as entry>
<tr><td>${entry.key}</td><td>${entry.value}</td></tr>
</#list>
freemarker.template.TemplateException: Expected collection or
sequence. Request.applicationProps evaluated instead to
freemarker.template.SimpleHash on line 23, column 20 in
WEB-INF/view/systeminfo.ftl.
--
Thanks,
Zemian Deng
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user