for(GenericValue cityCategory:cityCategoryList){
Map map = FastMap.newInstance();
List valueList = FastList.newInstance();
String enumCode=cityCategory.getString("enumCode");
for(GenericValue geoCity:geoCityList){
String cityName=geoCity.getString("cityName");
String cityInitial=geoCity.getString("cityInitial");
String cityId=geoCity.getString("cityId");
Map cityMap=FastMap.newInstance();
if(enumCode.contains(cityInitial)){
cityMap.put(cityId, cityName);
valueList.add(cityMap);
}
}
if(valueList.size()>0){
map.put(enumCode, valueList);
list.add(map);
}
}
<#list GeoCitylist as cls>
<#list cls.keySet() as cityI>
<li ><em>${cityI}:</em>
<#list cls.get(cityI) as city>
<#list city.keySet() as cityId >
<span><a href="#" id="${cityId}">${city.get(cityId)}</a></span>
</#list>
</#list>
</li>
</#list>
</#list>
相关推荐
NULL 博文链接:https://jsjxqjy.iteye.com/blog/2072705
PLUS:若表格之外还有嵌套的循环,也需要用<#list table as map></#list>,注意这里的<#list></#list>标签不要和某对其他标签交叉,不可以出现<#list><w:p></#list></w:p>这种 6. 标识替换完之后,另存为.ftl后缀...
Freemarker页面语法 A 概念 最常用的 3 个概念 sequence 序列,对应java 里的list 、数组等非键值对的集合 hash 键值对的集合 namespace 对一个ftl 文件的引用, 利用这个名字可以访问到该... <#list 1..3 as ...
布尔值:true或false,通常在<#if …>标记中使用 2、 hashes:充当其它对象的容器,每个都关联一个唯一的查询名字 具有一个唯一的查询名字和他包含的每个变量相关联。 3、 sequences:充当其它对象的容器,按...
<#list animals as being><br> <li>${being.name} for ${being.price} Euros<br> <#list><br> <u1><br> </body><br> </html> 1, FTL指令规则 在FreeMarker中,使用FTL标签来使用指令,FreeMarker有3种FTL...
数据模型: @RequestMapping(/freemarker) ... public String test1(Model model){ //向数据模型放数据 model.addAttribute(name,三年二班); Student stu1 = new Student(); stu1.setName(小明); st
原来Struts2里带了一个org.apache.struts2.views.freemarker.FreemarkerServlet,新版本里没有了。 这个文件是我从Struts2老版本中摘出来的FreemarkerServlet... <url-pattern>*.ftl</url-pattern> </servlet-mapping>
<s:checkboxlist list="perList" theme="custom" template="customcheckboxlist.ftl" name="perId" listKey="permissionId" listValue="name" value="checkPermission"></s:checkboxlist> ...
<decorator name="main" page="main.ftl"> <pattern>/*</pattern> </decorator> decorators> 如果需要自定义装饰器映射器,需要在WEB-INF目录下创建一个sitemesh.xml文件(通常从发布包中拷贝过来更改相应...
<td class="list_box1_title2">信息名称:<font color="red">*</font></td> <td> <input name="exPlainInfo.title" id="exPlainInfo.title" class="ip5" value="${(exPlainInfo.title)?default("")}"/> </td> </...
<#list animals as being><br> <li>${being.name} for ${being.price} Euros<br> <#list><br> <u1><br> </body><br> </html> 1, FTL指令规则 在FreeMarker中,使用FTL标签来使用指令,FreeMarker有3种FTL标签,这和...
ckeditor文件上传功能,附图片上传示例,java程序及返回结果。 strut配置 <action name="uploadCKEditorImage" class=... <result name="success" type="freemarker">/users/uploadresult.ftl</result> </action>
图5-1 在线考试系统主界面图<html><head> <#include "forecomment/head.ftl"></head><body><#incl
freemarker(FTL)常见语法大全,讲解ftl中的常见语法。
effective flash translation layer
<#include "./memuLi/${item}.ftl"> </#list> </ul> <li class="btn_link" draggable="true" id="actFormIndex" onclick="changeM('')"> <img src="pprove.png" alt="审批"> <span class=...
printTaskRecordSafer_list.ftl
ftl的使用非常普及,但是,但是里面的语法却让人很难懂得,这里有详细的技术帮助文档
java freemark list嵌套导出word