Examples of VelocityParser


Examples of in980.velogen.parser.VelocityParser

  }

  public static void prepareFile(String templateFilePath, Properties propFile,
      String output, String input)
      throws IOException {
    VelocityParser velInstance = new VelocityParser(input
        + templateFilePath + ".vm");

    Enumeration<Object> keys = propFile.keys();
    while (keys.hasMoreElements()) {
      String key = (String) keys.nextElement();
      velInstance.addToContext(key, propFile.get(key));
    }

    Charset cs = Charset.forName(FILE_ENCODING);
    OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream(
        output + templateFilePath + ".jsp"), cs);
    System.out.println(output + templateFilePath + ".jsp");

    velInstance.processTemplate(osw);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.