Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Dynamic reports with JasperReports and Velocity

527664Oct 6 2006 — edited Oct 6 2006
Hi all!

I have problems trying to create dynamic reports using JasperReports with Velocity libraries.


I have XML-like file named as velocityTest1.vm (in root of partition C), in which I call variable $sql. What I want is to define sql query in .java file, and to call velocity template.


First problem that I have here is that when I try to open vm file with:

Template t = ve.getTemplate( "c:/velocityTest1.vm" );

... I get the error message

Unable to find resource 'c:/velocityTest1.vm'

... despite the thing that file is on that location.


BTW, I am able to create "static" reports without any problem.


Also, I can not found any (worknig) example for JasperReports and Velocity
pair, if somebody can help me with this, plese.


Thank you in advance!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 3 2006
Added on Oct 6 2006
1 comment
639 views