java freemark模板使用struts2标签问题??
<@s.debug/>出现以下错误是什么原因??-------------------------------------------------------------...
<@s.debug/>出现以下错误是什么原因??
--------------------------------------------------------------
Warning: validation was turned on but an org.xml.sax.ErrorHandler was not
set, which is probably not what is desired. Parser will use a default
ErrorHandler to print the first 10 errors. Please call
the 'setErrorHandler' method to fix this.
Error: URI=jndi:/localhost/zbsc_web/WEB-INF/struts-tags.tld Line=2: Document root element "taglib", must match DOCTYPE root "null".
Error: URI=jndi:/localhost/zbsc_web/WEB-INF/struts-tags.tld Line=2: Document is invalid: no grammar found.
[2013-03-17 21:49:33]ERROR 15422s freemarker.log.Log4JLoggerFactory$Log4JLogger.error(Log4JLoggerFactory.java:96) -
Expected hash. stack.context.get(contextKey) evaluated instead to freemarker.ext.jsp.FreeMarkerPageContext2 on line 76, column 74 in template/simple/debug.ftl.
The problematic instruction:
----------
==> ${stack.context.get(contextKey).toString()?html} [on line 76, column 72 in template/simple/debug.ftl]
in include "/${parameters.templateDir}/simple/debug.ftl" [on line 23, column 1 in template/xhtml/debug.ftl]
----------
Java backtrace for programmers:
----------
freemarker.template.TemplateException: Expected hash. stack.context.get(contextKey) evaluated instead to freemarker.ext.jsp.FreeMarkerPageContext2 on line 76, column 74 in template/simple/debug.ftl.
at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:135)
at freemarker.core.Dot._getAsTemplateModel(Dot.java:78) 展开
--------------------------------------------------------------
Warning: validation was turned on but an org.xml.sax.ErrorHandler was not
set, which is probably not what is desired. Parser will use a default
ErrorHandler to print the first 10 errors. Please call
the 'setErrorHandler' method to fix this.
Error: URI=jndi:/localhost/zbsc_web/WEB-INF/struts-tags.tld Line=2: Document root element "taglib", must match DOCTYPE root "null".
Error: URI=jndi:/localhost/zbsc_web/WEB-INF/struts-tags.tld Line=2: Document is invalid: no grammar found.
[2013-03-17 21:49:33]ERROR 15422s freemarker.log.Log4JLoggerFactory$Log4JLogger.error(Log4JLoggerFactory.java:96) -
Expected hash. stack.context.get(contextKey) evaluated instead to freemarker.ext.jsp.FreeMarkerPageContext2 on line 76, column 74 in template/simple/debug.ftl.
The problematic instruction:
----------
==> ${stack.context.get(contextKey).toString()?html} [on line 76, column 72 in template/simple/debug.ftl]
in include "/${parameters.templateDir}/simple/debug.ftl" [on line 23, column 1 in template/xhtml/debug.ftl]
----------
Java backtrace for programmers:
----------
freemarker.template.TemplateException: Expected hash. stack.context.get(contextKey) evaluated instead to freemarker.ext.jsp.FreeMarkerPageContext2 on line 76, column 74 in template/simple/debug.ftl.
at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:135)
at freemarker.core.Dot._getAsTemplateModel(Dot.java:78) 展开
展开全部
${stack.context.get(contextKey).toString()?html} [on line 76, column 72 in template/simple/debug.ftl]
in include "/${parameters.templateDir}/simple/debug.ftl" [on line 23, column 1 in template/xhtml/debug.ftl]
这个,有错,好好检查一下!!
in include "/${parameters.templateDir}/simple/debug.ftl" [on line 23, column 1 in template/xhtml/debug.ftl]
这个,有错,好好检查一下!!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询