Controller代码:
ModelAndView mv = new ModelAndView("mnt/queryUser");
mv.addObject("orgMap", MntCache.getOrgMap()); //从缓存中获取一个HashMap。
return mv;
前端html代码:
<select id="org_sel">
<#if orgMap?exists>
<#list orgMap?keys as orgKey>
<option value="${orgKey}" >
${orgMap[orgKey]}
</option>
</#list>
</#if>
</select>