首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > Ruby Rails >

FreeMark 中应用<ww:action/>标签出现FreeMarker template error

2012-11-11 
FreeMark 中使用ww:action/标签出现FreeMarker template error!请教谁知道这个问题是怎么回事?FreeMark

FreeMark 中使用<ww:action/>标签出现FreeMarker template error!
请教谁知道这个问题是怎么回事?FreeMark 中使用<ww:action/>标签

test.html

<#assign ww=JspTaglibs["/WEB-INF/webwork.tld"] /><@ww.action id="product" name="displayProduct" namespace="/product" executeResult="false" /><html>  <head>    <title>test!!!</title>  </head>  <body>  </body></html>






java.lang.IllegalArgumentException: argument type mismatchThe problematic instruction:----------==> user-directive ww.action [on line 3, column 1 in com/enation/groupware/product/web/page/ProductIndex.html]----------Java backtrace for programmers:----------freemarker.template.TemplateModelException: java.lang.IllegalArgumentException: argument type mismatchat freemarker.ext.jsp.TagTransformModel.getWriter(TagTransformModel.java:166)at freemarker.core.Environment.visit(Environment.java:220)at freemarker.core.UnifiedCall.accept(UnifiedCall.java:116)at freemarker.core.Environment.visit(Environment.java:196)at freemarker.core.MixedContent.accept(MixedContent.java:92)at freemarker.core.Environment.visit(Environment.java:196)at freemarker.core.Environment.process(Environment.java:176)at freemarker.template.Template.process(Template.java:231)at com.opensymphony.webwork.views.freemarker.FreemarkerResult.doExecute(FreemarkerResult.java:153)at com.opensymphony.webwork.dispatcher.WebWorkResultSupport.execute(WebWorkResultSupport.java:143)at com.opensymphony.xwork.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:311)at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:206)at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)at com.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115)at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)at com.opensymphony.webwork.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:171)at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)at com.opensymphony.webwork.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:147)at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)at com.opensymphony.xwork.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:151)at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)at com.opensymphony.xwork.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:186)at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:113)at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:225)at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:111)at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)at java.lang.Thread.run(Thread.java:595)Caused by: java.lang.IllegalArgumentException: argument type mismatchat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:585)at freemarker.ext.jsp.TagTransformModel.setupTag(TagTransformModel.java:203)at freemarker.ext.jsp.TagTransformModel.getWriter(TagTransformModel.java:137)... 57 more
[color=red][/color]

热点排行