Examples of VelocityTemplateProcessor


Examples of org.infoglue.deliver.util.VelocityTemplateProcessor

          if (cName != null)
            context.put(cName, cObject);           
   
          StringWriter cacheString = new StringWriter();
          PrintWriter cachedStream = new PrintWriter(cacheString);
          new VelocityTemplateProcessor().renderTemplate(context, cachedStream, includedTemplate);
          result = cacheString.toString();
         
          logger.info("result:" + result);
 
          if(cacheInclude)
View Full Code Here

Examples of org.infoglue.deliver.util.VelocityTemplateProcessor

     
      Map context = getDefaultContext();

      StringWriter cacheString = new StringWriter();
      PrintWriter cachedStream = new PrintWriter(cacheString);
      new VelocityTemplateProcessor().renderTemplate(context, cachedStream, templateString);
      String pageString = cacheString.toString();
     
      pageString = this.getTemplateController().decoratePage(pageString);
     
      this.setPageString(pageString);
View Full Code Here

Examples of org.infoglue.deliver.util.VelocityTemplateProcessor

        parameters.put("comment", comment);
        parameters.put("referenceUrl", referenceUrl);
     
      StringWriter tempString = new StringWriter();
      PrintWriter pw = new PrintWriter(tempString);
      new VelocityTemplateProcessor().renderTemplate(parameters, pw, template);
      email = tempString.toString();
     
      String systemEmailSender = CmsPropertyHandler.getSystemEmailSender();
      if(systemEmailSender == null || systemEmailSender.equalsIgnoreCase(""))
        systemEmailSender = "InfoGlueCMS@" + CmsPropertyHandler.getMailSmtpHost();
View Full Code Here

Examples of org.infoglue.deliver.util.VelocityTemplateProcessor

        parameters.put("eventHrefs", eventHref);
        //parameters.put("referenceUrl", referenceUrl);
     
      StringWriter tempString = new StringWriter();
      PrintWriter pw = new PrintWriter(tempString);
      new VelocityTemplateProcessor().renderTemplate(parameters, pw, template);
      String email = tempString.toString();
     
      String systemEmailSender = CmsPropertyHandler.getSystemEmailSender();
      if(systemEmailSender == null || systemEmailSender.equalsIgnoreCase(""))
        systemEmailSender = "InfoGlueCMS@" + CmsPropertyHandler.getMailSmtpHost();
View Full Code Here

Examples of org.infoglue.deliver.util.VelocityTemplateProcessor

    Map context = new HashMap();
    context.put("scriptLogic", scriptController);

    StringWriter cacheString = new StringWriter();
    PrintWriter cachedStream = new PrintWriter(cacheString);
    new VelocityTemplateProcessor().renderTemplate(context, cachedStream, userInputHTML);
    //renderTemplate(context, cachedStream, userInputHTML);
    String result = cacheString.toString();

    scriptController.commitTransaction();
       
View Full Code Here

Examples of org.infoglue.deliver.util.VelocityTemplateProcessor

      fakeComponent.setName(contentVO.getName());
      fakeComponent.setContentId(contentVO.getId());
     
      StringWriter cacheString = new StringWriter();
      PrintWriter cachedStream = new PrintWriter(cacheString);
      new VelocityTemplateProcessor().renderTemplate(context, cachedStream, code, false, fakeComponent);
      //renderTemplate(context, cachedStream, code);
      String result = cacheString.toString();
     
      scriptController.commitTransaction();
     
      cacheString = new StringWriter();
      cachedStream = new PrintWriter(cacheString);
      new VelocityTemplateProcessor().renderTemplate(context, cachedStream, userOutputHTML, false, fakeComponent);
      //renderTemplate(context, cachedStream, userOutputHTML);
      result = cacheString.toString();
 
      getResponse().setContentType("text/html");
      PrintWriter out = getResponse().getWriter();
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.