posted 20 years ago
Does anyone know how I would escape the Jasper variables from Velocity? I am trying to build the .xml for Jasper by using Velocity but the variables are colliding. Basically I have a number of variables in the .vm file that look like this
$F{BAR}
and when I pass the .vm file through the Velocity template engine I get
$F{
Which of course causes JasperReports to freak. So I did the following
\$F{BAR}
Which got me
\$F{BAR}
So then I did
\$F\{BAR}
which got me
\$F\{BAR}
:scratchhead: How would I go about escaping out $F{BAR} so velocity will pass it through unmolested?
thanks,
-c