Package jetbrick.template

Examples of jetbrick.template.JetConfig.load()


            // 在 weblogic 中以 war 方式部署的时候,无法使用 getRealPath 方法.
            System.setProperty("webapp.dir", webappdir);
        }

        JetConfig config = new JetConfig();
        config.load(JetConfig.TEMPLATE_LOADER, WebResourceLoader.class.getName());
        config.load(JetConfig.TEMPLATE_PATH, "/"); // 默认 Webapp 根目录

        String location = sc.getInitParameter(CONFIG_LOCATION);
        if (location != null && location.length() > 0) {
            config.loadSerlvetResource(sc, location);
View Full Code Here


            System.setProperty("webapp.dir", webappdir);
        }

        JetConfig config = new JetConfig();
        config.load(JetConfig.TEMPLATE_LOADER, WebResourceLoader.class.getName());
        config.load(JetConfig.TEMPLATE_PATH, "/"); // 默认 Webapp 根目录

        String location = sc.getInitParameter(CONFIG_LOCATION);
        if (location != null && location.length() > 0) {
            config.loadSerlvetResource(sc, location);
        } else {
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.