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)
展开
 我来答
悲伤地今天
2013-03-18 · TA获得超过158个赞
知道小有建树答主
回答量:396
采纳率:22%
帮助的人:100万
展开全部
${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]
这个,有错,好好检查一下!!
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式