0

Is any way to use Velocity DisplayTool in ODT template (rendered with XdocReport). I linked libraries with maven but when i render report from template I see tag $display.stripTags(Object), it seems that velocity does not recognize this tag.

Is there a need to make special configuration in xml, I use spring but I don't want velocity view resolver bean as it is in many solutions.

Ideas?

4

1 回答 1

0

如果您已将其添加到速度上下文中,该$display变量将仅在您的模板中可用。

我知道有两种方法可以做到这一点:

  • 您可以在渲染模板之前将显示工具的实例作为变量添加到上下文中
  • 您可以创建一个 xml 配置文件并配置一个ToolManager示例
于 2013-07-03T11:37:21.517 回答