标签:freemarker map
废话不说,看代码:
Java
Map<String, String> selectMap = new TreeMap<String, String>(); selectMap.put("platId", "平台ID"); selectMap.put("crawlerId", "爬虫ID"); request.setAttribute("selectMap", selectMap);HTML
<select> <option value="all">所有字段</option> <#list selectMap?keys as key> <option value="${key}">${selectMap[key]}</option> </#list> </select>
标签:freemarker map
原文地址:http://blog.csdn.net/limenghua9112/article/details/45844451