Package sunlabs.brazil.template

Examples of sunlabs.brazil.template.TemplateRunner


  this.prefix = prefix;

  String name = props.getProperty(prefix + TEMPLATES, "");
  subtype = "text/" + props.getProperty(prefix + "subtype", "");
  try {
      runner = new TemplateRunner(server, prefix, name);
  } catch (Exception e) {
      server.log(Server.LOG_ERROR, prefix,
        "Can't instantiate " + e.getMessage());
      return false;
  }
View Full Code Here


  if (templates == null) {
      debug(hr, "token: " + token + " is not defined");
      return;
  }

  TemplateRunner runner = (TemplateRunner) runners.get(token);
  if (runner == null) {
      try {
    runner = new TemplateRunner(hr.server, prefix, templates);
          runners.put(token, runner);
    hr.request.log(Server.LOG_DIAGNOSTIC, hr.prefix,
      "creating runner for: " + templates);
      } catch (Exception e) {
    debug(hr, "Can't instantiate " + e.getMessage());
    return;
      }
  }
  String result = runner.process(hr.request, data, hr.sessionId);
  if (!ignore) {
      hr.append(result);
  }
    }
View Full Code Here

TOP

Related Classes of sunlabs.brazil.template.TemplateRunner

Copyright © 2018 www.massapicom. 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.