|
| Velocity.init();
|
| // set payload, variables
| VelocityContext context = new VelocityContext();
| context.put( "name", new String("Velocity") );
|
| // fetch a template
| Template template = Velocity.getTemplate("mytemplate.vm");
|
| // render it
| StringWriter sw = new StringWriter();
| template.merge( context, sw );
|
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209796#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...