aspose file tools*
The moose likes Other Open Source Projects and the fly likes Using freemarker in standalone java program? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Using freemarker in standalone java program?" Watch "Using freemarker in standalone java program?" New topic
Author

Using freemarker in standalone java program?

Aman S Singh
Greenhorn

Joined: May 24, 2008
Posts: 5
Is it possible to use integrate freemarker in standalone java program, if yes please let me know the link.
Aman S Singh
Greenhorn

Joined: May 24, 2008
Posts: 5
I got the basic example working, if anybody have another suggestions please let me know-


Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39436
    
  28
What's freemarker? How are you adding it to your classpath?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Other suggestions for what? If it works, are there any other further issues?

Moving to other open source libraries.
Aman S Singh
Greenhorn

Joined: May 24, 2008
Posts: 5
Campbell Ritchie wrote:What's freemarker? How are you adding it to your classpath?


Freemarker is a open source java templating engine. You could think of freemarker vs jsp vs velocity. But it has uses beyond that, it could help you define file format. As in my case, instead of writing the code in java to write flat file, why not use freemarker template, the same template is portable.

The template used for above program is like this-



Result after running the program-

Check out from data model Hello World!
Aman S Singh
Greenhorn

Joined: May 24, 2008
Posts: 5
You need to add freemarker.jar to your classpath.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using freemarker in standalone java program?