ftl模板里面使用struts的标签 <@s.action /> 现在生成静态页提示freemarker.core.InvalidReferenceException: Expression s is undefined Template template = config.getTemplate(templateFile, Constants.ENCODING); markDirectory(htmlPath); template.setEncoding(Constants.ENCODING); FileOutputStream fos = new FileOutputStream(htmlPath); Writer out = new OutputStreamWriter(fos); template.process(root, out);
添加回答
举报
0/150
提交
取消