1.java代码
String jspPath=rootPath+name+"/webs/"+template.getTemplatename()+"/"+template.getTemplatename()+"_"+fileName+".jsp";
//System.out.println("[UITemplatePartBean] +++++++++++++++++++++++++++ jspPath=" + jspPath);
String fltPath=rootPath+"flt/emplty.ftl";
Map dataMap=getAllhandlerformat(handlerBlockList);
dataMap.put("basePath","${basePath}");
dataMap.put("systemSubType","${systemSubType}");
dataMap.put("$_CssPath","${$_CssPath}");
dataMap.put("$_JspPath","${$_JspPath}");
dataMap.put("$_JsPath","${$_JsPath}");
// dataMap.put("replaceCode",""); // 默认不替换
JspGenerator jspGenerator=new JspGeneratorImpl();
JspModel jspModel=new JspModel();
jspModel.setFltPath(fltPath);
jspModel.setJspPath(jspPath);
jspGenerator.getAllJsp(jspModel, dataMap,true);
2.flt/emplty.ftl
${block.htmlCode?if_exists} #list>