freemark 页面里面遍历map数据

阅读更多
<#list twolist[key] as twlist>  //key 可以是动态的
 



实例:
<#list fritlist as flist>  //list
<#assign key=flist.sys_tableno>
<#list twolist[key] as twlist>  // twolist 是一个map
 

//java代码
Map> twolist=new HashMap>();
List syslist =xxxxxxxx();
twolist.put(sys_tableno, syslist);
modelAndView.put("twolist",twolist);

实例2:
循环遍历map
<#list threelist?keys as key1>
<#if key1==key>
<#list threelist[key] as thlist>


你可能感兴趣的:(freemark 页面里面遍历map数据)