This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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
 
 
subject: How to use velocity with out template