Package cambridge

Examples of cambridge.TemplateLoader


   public void init(ServletConfig config) throws ServletException {
      initData();

      ServletContext ctx = config.getServletContext();
      File templateDir = new File(ctx.getRealPath("/WEB-INF/templates"));
      TemplateLoader loader = new DirectoryTemplateLoader(templateDir, "UTF-8");
      tf = loader.newTemplateFactory("users.html");
   }
View Full Code Here


   public void init(ServletConfig config) throws ServletException {
      initData();

      ServletContext ctx = config.getServletContext();
      File templateDir = new File(ctx.getRealPath("/WEB-INF/templates"));
      TemplateLoader loader = new DirectoryTemplateLoader(templateDir, "UTF-8");
      tf = loader.newTemplateFactory("users.html", Expressions.cambridgeExpressionLanguage);
   }
View Full Code Here

TOP

Related Classes of cambridge.TemplateLoader

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.