Examples of JspConfigType


Examples of org.apache.geronimo.xbeans.javaee6.JspConfigType

            return;
        }
        if (webFragment.getJspConfigArray().length > 1) {
            logger.warn(WebDeploymentMessageUtils.createMultipleConfigurationWarningMessage("jsp-config", mergeContext.getCurrentJarUrl()));
        }
        JspConfigType srcJspConfig = webFragment.getJspConfigArray(0);
        JspConfigType targetJspConfig = webApp.getJspConfigArray().length == 0 ? webApp.addNewJspConfig() : webApp.getJspConfigArray(0);
        //Merge Tag lib configurations
        for (TaglibType taglib : srcJspConfig.getTaglibArray()) {
            if (MergeHelper.mergeRequired(createTaglibKey(taglib), "jsp-config/tag-lib", "taglib-uri", taglib.getTaglibUri().getStringValue(), "taglib-location", taglib.getTaglibLocation()
                    .getStringValue(), mergeContext)) {
                TaglibType newTaglib = targetJspConfig.addNewTaglib();
                newTaglib.set(taglib);
            }
        }
        //Merge jsp-property-group configurations, seem that no merge actions are required, just add them to the web.xml file
        for (JspPropertyGroupType srcJspPropertyGroup : srcJspConfig.getJspPropertyGroupArray()) {
            targetJspConfig.addNewJspPropertyGroup().set(srcJspPropertyGroup);
        }
    }
View Full Code Here

Examples of org.apache.geronimo.xbeans.javaee6.JspConfigType

            return;
        }
        if (webApp.getJspConfigArray().length > 1) {
            throw new DeploymentException(WebDeploymentMessageUtils.createMultipleConfigurationWebAppErrorMessage("jsp-config"));
        }
        JspConfigType jspConfig = webApp.getJspConfigArray(0);
        for (TaglibType taglib : jspConfig.getTaglibArray()) {
            context.setAttribute(createTaglibKey(taglib), new MergeItem(taglib.getTaglibLocation().getStringValue(), null, ElementSource.WEB_XML));
        }
    }
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.