Examples of mergeData()


Examples of com.jada.content.template.TemplateEngine.mergeData()

      // merge with template and stream.
    TemplateEngine engine = TemplateEngine.getInstance();
    engine.init(request, this.getServlet().getServletContext(), true);
    ItemCompareInfo itemCompareInfo = new ItemCompareInfo();
    itemCompareInfo.setItemCompareList(dataList);
    String body = engine.mergeData("components/compare/compareItemList.vm", "itemCompareInfo", itemCompareInfo);
    streamWebService(response, body);
      return null;
    }
   
    public ActionForward getStates(ActionMapping actionMapping,
View Full Code Here

Examples of com.jada.content.template.TemplateEngine.mergeData()

    Site site = siteDomain.getSite();

    TemplateEngine engine = TemplateEngine.getInstance();
    engine.init(request, servletContext, true);
    engine.setParameter("orderHeaderId", orderHeader.getOrderHeaderId());
    String body = engine.mergeData("mail/custSaleConfirmation.vm", "template", engine);
        Mailer mailer = new Mailer(site);

        String mailFrom = siteDomainParamBean.getMailFromCustSales();
        String subject = siteDomainParamBean.getSubjectCustSales();
        String mailTo = orderHeader.getCustEmail();
View Full Code Here

Examples of com.jada.content.template.TemplateEngine.mergeData()

          logger.error("mailTo = " + mailTo);
          logger.error("subject = " + subject);
        }
        mailer.sendMail(mailFrom, mailTo, subject, body, "text/html");
       
    body = engine.mergeData("mail/adminSaleNotification.vm", "template", engine);
    mailTo = siteDomainParamBean.getCheckoutNotificationEmail();
        mailFrom = siteDomainParamBean.getMailFromNotification();
        subject = siteDomainParamBean.getSubjectNotification();
        if (!Format.isNullOrEmpty(mailFrom) && !Format.isNullOrEmpty(mailTo)) {
          mailer.sendMail(mailFrom, mailTo, subject, body, "text/html");
View Full Code Here

Examples of com.jada.content.template.TemplateEngine.mergeData()

    engine.init(orderHeader.getSiteDomain(),
          orderHeader.getSiteProfile(),
          orderHeader.getSiteCurrency(),
          servletContext);
    engine.setParameter("orderHeaderId", orderHeader.getOrderHeaderId());
    String body = engine.mergeData("mail/shippingQuote.vm", "template", engine);
        Mailer mailer = new Mailer(site);

        String mailFrom = siteDomainParamBean.getMailFromShippingQuote();
        String subject = siteDomainParamBean.getSubjectShippingQuote();
        String mailTo = orderHeader.getCustEmail();
View Full Code Here

Examples of com.jada.content.template.TemplateEngine.mergeData()

            HttpServletResponse response) throws Exception {
     
      String data = "";
      TemplateEngine engine = TemplateEngine.getInstance();
      engine.init(request, this.getServlet().getServletConfig().getServletContext());
    data =  engine.mergeData("template.vm");
        OutputStream outputStream;
    outputStream = response.getOutputStream();
        outputStream.write(data.getBytes("UTF-8"));
        outputStream.flush();
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.