• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

JasperReports and Velocity Variables

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Chad Dalton
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Anyone know someone or somewhere I could contact regarding this question? I really need to figure this out.
thanks,
-c
 
There is no "i" in denial. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic