Questions tagged [velocity-tools]

VelocityTools is an integrated collection of Velocity subprojects and infrastructure to easily, automatically and transparently make these tools available to Velocity templates.

VelocityTools is an integrated collection of Velocity subprojects and infrastructure to easily, automatically and transparently make these tools available to Velocity templates.

The project URL: http://velocity.apache.org/tools/

7 questions
3
votes
1 answer

Unable to set Nulll in Velocity Template

I am trying to set a variable to null in Velocity. I am trying: #set ($acessSpeed = null) I was reading the velocity null support wiki. It says we can set a value to null this way. https://wiki.apache.org/velocity/VelocityNullSupport But when i try…
hell_storm2004
  • 1,401
  • 2
  • 33
  • 66
2
votes
1 answer

Is Velocitytools 3.0 out yet?

For some time velocity engine 2.0 is out but the velocity tools is not upgraded yet. As I understand it, velocity tools 3.0 will work with velocity engine 2.0. The latstest in maven repo is velocitytools 2.0 but this one depends on velocity 1.6
tibi
  • 657
  • 1
  • 10
  • 22
2
votes
1 answer

Velocity Tool XmlTool

I am trying to use XmlTool to parse an XML file to be able to use the data in a Velocity template. However, the documentation on it is all pretty poor and doesn't really give the information I need. The documentation is at:…
marcusds
  • 784
  • 1
  • 7
  • 26
1
vote
2 answers

Encoding problems when migrating Apache Velocity

I have been using Apache Velocity for years in my Tomcat web platform. I was under very old versions: velocity-1.6.4 and velocity-tools-1.4 and I recently decided to migrate my whole platform and to use velocity-engine 2.3 and velocity-tools…
1
vote
1 answer

How do I convert a String to date in velocity template?

I want to convert $departureFromDate (format:yyyy-MM-dd) to date object so that I can perform increment operations on it. I have been trying to do it the following way: #set($departureFromDate = "{{jsonPath request.body…
1
vote
1 answer

How to use velocity toolbox in Struts 2?

I use velocity1.6.4, velocity-tools1.4, and struts2.3.15.2 in struts.xml: in toolbox.xml: date
Meng Qian
  • 97
  • 1
  • 1
  • 9
0
votes
0 answers

Velocity XmlTool 3.0 with multiple namespaces

I'm trying to update some old code from Velocity 1.7 / VelocityTools 2.0 to 2.2/3.0 versions. During tests I'm processing a XML file with multiple Namespaces (lets say b for book and a for author:
Jens Popp
  • 131
  • 1
  • 12