【问题标题】:Struts2 debug tag thinks toString() is udefinedStruts2 调试标签认为 toString() 未定义
【发布时间】:2011-04-06 05:40:41
【问题描述】:

Struts2 中的调试标签不断收到此错误。有什么想法会导致这种情况吗?

FreeMarker template error!

Expression stackObject.value.get(propertyName).toString() is undefined on line 58, column 122 in template/simple/debug.ftl.
The problematic instruction:
----------
==> ${stackObject.value.get(propertyName).toString()?html} [on line 58, column 120 in template/simple/debug.ftl]
 in include "/${parameters.templateDir}/simple/debug.ftl" [on line 23, column 1 in template/xhtml/debug.ftl]
----------

【问题讨论】:

    标签: struts2 jsp-tags freemarker ognl


    【解决方案1】:

    没关系。值堆栈有一个对象,该对象具有重写的 toString 方法,该方法返回 null。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-07-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-10
      • 2017-04-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多