This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
Velocity anyone
velocity tools and view technologies
Velocity template - populating with form values
is Velocity best choice for outputting XML with a template XML file?
what is the value prop of Velocity