Package org.apache.openejb.jee

Examples of org.apache.openejb.jee.JspConfig


            return;
        }
        if (webFragment.getJspConfig().size() > 1) {
            logger.warn(WebDeploymentMessageUtils.createMultipleConfigurationWarningMessage("jsp-config", mergeContext.getCurrentJarUrl()));
        }
        JspConfig srcJspConfig = webFragment.getJspConfig().get(0);
        if (webApp.getJspConfig().isEmpty()) {
            webApp.getJspConfig().add( new JspConfig());
        }
        JspConfig targetJspConfig = webApp.getJspConfig().get(0);
        //Merge Tag lib configurations
        for (Taglib taglib : srcJspConfig.getTaglib()) {
            if (MergeHelper.mergeRequired(createTaglibKey(taglib), "jsp-config/tag-lib", "taglib-uri", taglib.getTaglibUri(), "taglib-location", taglib.getTaglibLocation()
                    , mergeContext)) {
                targetJspConfig.getTaglib().add(taglib);
            }
        }
        //Merge jsp-property-group configurations, seem that no merge actions are required, just add them to the web.xml file
        for (JspPropertyGroup srcJspPropertyGroup : srcJspConfig.getJspPropertyGroup()) {
            targetJspConfig.getJspPropertyGroup().add(srcJspPropertyGroup);
        }
    }
View Full Code Here


            return;
        }
        if (webApp.getJspConfig().size() > 1) {
            throw new DeploymentException(WebDeploymentMessageUtils.createMultipleConfigurationWebAppErrorMessage("jsp-config"));
        }
        JspConfig jspConfig = webApp.getJspConfig().get(0);
        for (Taglib taglib : jspConfig.getTaglib()) {
            context.setAttribute(createTaglibKey(taglib), new MergeItem(taglib.getTaglibLocation(), null, ElementSource.WEB_XML));
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.openejb.jee.JspConfig

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.