Package com.jada.content.data

Examples of com.jada.content.data.EmptyTemplateInfo


    return getEmptyTemplateInfo("templateSecure.vm");
  }
 
  public EmptyTemplateInfo getEmptyTemplateInfo(String vmfile) throws ResourceNotFoundException, ParseErrorException, Exception {
    String data = mergeData(vmfile);
    EmptyTemplateInfo emptyTemplateInfo = new EmptyTemplateInfo();
    emptyTemplateInfo.setTemplatePrefix("");
    emptyTemplateInfo.setTemplateSuffix("");
    int pos = data.indexOf(emptyPlaceHolder);
    if (pos > 0) {
      emptyTemplateInfo.setTemplatePrefix(data.substring(0, pos));
    }
    if (data.length() > pos + emptyPlaceHolder.length()) {
      emptyTemplateInfo.setTemplateSuffix(data.substring(pos + emptyPlaceHolder.length()));
    }
    return emptyTemplateInfo;
  }
View Full Code Here


   
    protected void createEmptyTemplateInfo(HttpServletRequest request) throws IOException, Exception {
      boolean empty = true;
      TemplateEngine engine = TemplateEngine.getInstance();
      engine.init(request, getServlet().getServletConfig().getServletContext(), empty);
    EmptyTemplateInfo emptyTemplateInfo =  engine.getEmptyTemplateInfo();
    request.setAttribute("emptyTemplateInfo", emptyTemplateInfo);
    }
View Full Code Here

    protected void createEmptySecureTemplateInfo(HttpServletRequest request) throws IOException, Exception {
      boolean empty = true;
      TemplateEngine engine = TemplateEngine.getInstance();
    engine.init(request, getServlet().getServletConfig().getServletContext(), empty);
    EmptyTemplateInfo emptyTemplateInfo =  engine.getEmptySecureTemplateInfo();
    request.setAttribute("emptyTemplateInfo", emptyTemplateInfo);
    }
View Full Code Here

   
    protected void createEmptyPrintTemplateInfo(HttpServletRequest request) throws IOException, Exception {
      boolean empty = true;
      TemplateEngine engine = TemplateEngine.getInstance();
      engine.init(request, getServlet().getServletConfig().getServletContext(), empty);
    EmptyTemplateInfo emptyTemplateInfo =  engine.getEmptyPrintTemplateInfo();
    request.setAttribute("emptyTemplateInfo", emptyTemplateInfo);
    }
View Full Code Here

TOP

Related Classes of com.jada.content.data.EmptyTemplateInfo

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.