Mam mapę mieszania, jak poniżejFreemarker i hashmap. Jak mogę dostać klucz-wartość
HashMap<String, String> map = new HashMap<String, String>();
map.put("one", "1");
map.put("two", "2");
map.put("three", "3");
Map root = new HashMap();
root.put("hello", map);
My Freemarker szablon jest:
<html><body>
<#list hello?keys as key>
${key} = ${hello[key]}
</#list>
</body></html>
Celem jest wyświetlanie parę klucz-wartość w HTML, że” m generowanie. Proszę, pomóż mi to zrobić. Dzięki!
Co jest wyświetlane? Gdzie jest błąd? – Aubin