aspose file tools*
The moose likes Other Application Frameworks and the fly likes How to use velocity with out template Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "How to use velocity with out template" Watch "How to use velocity with out template" New topic
Author

How to use velocity with out template

Pattamuthu Aru
Greenhorn

Joined: May 25, 2010
Posts: 13
Hi
I need to use velocity template with out using .vm file. Instead i should use string template. I think we have to use VelocityEngine.evaluate, how to use that. please help me
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

The developer's guide has string examples:

http://velocity.apache.org/engine/devel/developer-guide.html#thevelocityhelperclass
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to use velocity with out template