for (JspConfig jspConfig : webApp.getJspConfig()) { for (Taglib taglib : jspConfig.getTaglib()) { String location = taglib.getTaglibLocation(); if (!location.startsWith("/")) {
for (final JspConfig jspConfig : webApp.getJspConfig()) { for (final Taglib taglib : jspConfig.getTaglib()) { String location = taglib.getTaglibLocation(); if (!location.startsWith("/")) {
@Override public void preProcessWebXmlElement(WebApp webApp, MergeContext context) throws DeploymentException { if (webApp.getJspConfig().isEmpty()) { 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)); } }
for (final JspConfig jspConfig : webApp.getJspConfig()) { for (final Taglib taglib : jspConfig.getTaglib()) { String location = taglib.getTaglibLocation(); if (!location.startsWith("/")) {
for (Taglib taglib : taglibs) { String uri = taglib.getTaglibUri().trim(); String location = taglib.getTaglibLocation().trim(); if (!location.equals("")) { if (location.startsWith("/")) {
@Override public void merge(WebFragment webFragment, WebApp webApp, MergeContext mergeContext) throws DeploymentException { if (webFragment.getJspConfig().isEmpty()) { 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); } }