[jboss-dev-forums] [Design of JBoss jBPM] - Re: email templates

heiko.braun@jboss.com do-not-reply at jboss.com
Fri Feb 13 03:54:10 EST 2009


  | 
  | 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#4209796

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209796



More information about the jboss-dev-forums mailing list