
import org.apache.velocity.VelocityContext ;

class HorseWithForm {

  public static void main(String args[]) {
    VelocityContext vc = new VelocityContext() ;
    Form f = new Form("HorseForm.vm") ;

    Table t1 = new horseColor() ; 
    vc.put(new String("color"),t1.create()) ;
    Table t2 = new horseFace() ;  
    vc.put(new String("face"),t2.create()) ;
    Table t3 = new horseName() ;  
    vc.put(new String("name"),t3.create()) ;
    Table t4 = new horseBreed() ; 
    vc.put(new String("breed"),t4.create()) ;

    String horse = f.trans(vc) ;

    System.out.println(horse) ;
  }
}