FreeMarker标签出错问题


严重: Servlet.service() for servlet [JeeCmsFront] in context with path [] threw exception freemarker.core.ParseException: Encountered "{" at line 15, column 41 in WEB-INF/t/cms/www/eduyun/front/goodResourceSubjectList.html. Was expecting one of: ">" ... "." ... "[" ... "(" ... "?" ... "!" ... <TERMINATING_EXCLAM> ... "??" ... "+" ... "-" ... "*" ... "/" ... "%" ... "!=" ... "=" ... "==" ... ".." ... <AND> ... <OR> ... at freemarker.core.FMParser.generateParseException(FMParser.java:4697) at freemarker.core.FMParser.jj_consume_token(FMParser.java:4568) at freemarker.core.FMParser.If(FMParser.java:1171) at freemarker.core.FMParser.FreemarkerDirective(FMParser.java:2372) at freemarker.core.FMParser.Content(FMParser.java:2618) at freemarker.core.FMParser.OptionalBlock(FMParser.java:2786) at freemarker.core.FMParser.List(FMParser.java:1257) at freemarker.core.FMParser.FreemarkerDirective(FMParser.java:2375) at freemarker.core.FMParser.Content(FMParser.java:2618) at freemarker.core.FMParser.OptionalBlock(FMParser.java:2786) at freemarker.core.FMParser.If(FMParser.java:1197) at freemarker.core.FMParser.FreemarkerDirective(FMParser.java:2372) at freemarker.core.FMParser.Content(FMParser.java:2618) at freemarker.core.FMParser.OptionalBlock(FMParser.java:2786) at freemarker.core.FMParser.Root(FMParser.java:2958) at freemarker.template.Template.<init>(Template.java:149) at freemarker.cache.TemplateCache.loadTemplate(TemplateCache.java:448) at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:361) at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:235) at freemarker.template.Configuration.getTemplate(Configuration.java:487) at freemarker.template.Configuration.getTemplate(Configuration.java:452) at com.jeecms.common.web.springmvc.SimpleFreeMarkerView.renderMergedTemplateModel(SimpleFreeMarkerView.java:114) at org.springframework.web.servlet.view.AbstractTemplateView.renderMergedOutputModel(AbstractTemplateView.java:167)

错误代码

 

正确代码

 

posted @ 2017-09-25 18:16  Againn  阅读(3450)  评论(0编辑  收藏  举报