From bcd6df24fbcca8a8b1e9167ca4d72b3b90546ad2 Mon Sep 17 00:00:00 2001 From: Maduranga Siriwardena Date: Wed, 20 Mar 2024 18:37:00 +0530 Subject: [PATCH 1/2] Add changes to compile the product in Java17 --- ...org.apache.abdera.factory.ExtensionFactory | 1 + abdera/1.0.0.wso2v4/pom.xml | 122 +++++++++++++++ commons-fileupload/1.5.0.wso2v3/pom.xml | 94 ++++++++++++ csrfguard/3.1.0.wso2v5/pom.xml | 91 +++++++++++ encoder/1.2.0.wso2v3/pom.xml | 86 +++++++++++ tomcat-jsp-api/9.0.85.wso2v2/pom.xml | 81 ++++++++++ tomcat-servlet-api/9.0.85.wso2v2/pom.xml | 79 ++++++++++ tomcat/9.0.85.wso2v2/pom.xml | 142 ++++++++++++++++++ .../services/javax.el.ExpressionFactory | 1 + 9 files changed, 697 insertions(+) create mode 100644 abdera/1.0.0.wso2v4/META-INF/services/org.apache.abdera.factory.ExtensionFactory create mode 100644 abdera/1.0.0.wso2v4/pom.xml create mode 100644 commons-fileupload/1.5.0.wso2v3/pom.xml create mode 100644 csrfguard/3.1.0.wso2v5/pom.xml create mode 100644 encoder/1.2.0.wso2v3/pom.xml create mode 100644 tomcat-jsp-api/9.0.85.wso2v2/pom.xml create mode 100644 tomcat-servlet-api/9.0.85.wso2v2/pom.xml create mode 100644 tomcat/9.0.85.wso2v2/pom.xml create mode 100644 tomcat/9.0.85.wso2v2/src/main/resources/META-INF/services/javax.el.ExpressionFactory diff --git a/abdera/1.0.0.wso2v4/META-INF/services/org.apache.abdera.factory.ExtensionFactory b/abdera/1.0.0.wso2v4/META-INF/services/org.apache.abdera.factory.ExtensionFactory new file mode 100644 index 000000000..fcc3c3415 --- /dev/null +++ b/abdera/1.0.0.wso2v4/META-INF/services/org.apache.abdera.factory.ExtensionFactory @@ -0,0 +1 @@ +org.wso2.carbon.registry.app.PropertyExtensionFactory diff --git a/abdera/1.0.0.wso2v4/pom.xml b/abdera/1.0.0.wso2v4/pom.xml new file mode 100644 index 000000000..8dfb27eb4 --- /dev/null +++ b/abdera/1.0.0.wso2v4/pom.xml @@ -0,0 +1,122 @@ + + + + + + + + + + + 4.0.0 + org.apache.abdera.wso2 + abdera + bundle + abdera.wso2 + 1.0.0.wso2v4 + + org.wso2.carbon.abdera. This bundle will represent abdera + + http://wso2.org + + + + org.apache.abdera + abdera-client + ${version.abdera} + true + + + org.apache.abdera + abdera-core + ${version.abdera} + true + + + org.apache.abdera + abdera-parser + ${version.abdera} + true + + + org.apache.abdera + abdera-server + ${version.abdera} + true + + + org.apache.abdera + abdera-i18n + ${version.abdera} + true + + + + + + + org.apache.felix + maven-bundle-plugin + + true + + + ${project.artifactId} + WSO2 Inc + ${project.description} + ${project.artifactId} + + org.apache.abdera.*;version="${project.version}" + + + !org.apache.abdera.*, + javax.xml.stream.*;version="1.0.1", + javax.activation.*;version="[0.0.0, 2.0.0)" + + + META-INF/services/org.apache.abdera.factory.ExtensionFactory=META-INF/services/org.apache.abdera.factory.ExtensionFactory, + @abdera-core-${version.abdera}.jar!/META-INF/services/org.apache.abdera.factory.ExtensionFactory.example, + @abdera-core-${version.abdera}.jar!/abderamessages.properties, + @abdera-parser-${version.abdera}.jar!/META-INF/services/org.apache.abdera.writer.NamedWriter + + * + + + + + + + 1.0-wso2v2 + + + + + wso2-nexus + WSO2 internal Repository + https://maven.wso2.org/nexus/content/groups/wso2-public/ + + true + daily + ignore + + + + diff --git a/commons-fileupload/1.5.0.wso2v3/pom.xml b/commons-fileupload/1.5.0.wso2v3/pom.xml new file mode 100644 index 000000000..52e9ecad6 --- /dev/null +++ b/commons-fileupload/1.5.0.wso2v3/pom.xml @@ -0,0 +1,94 @@ + + + + 4.0.0 + org.wso2.orbit.commons-fileupload + commons-fileupload + bundle + commons-fileupload orbit bundle + 1.5.0.wso2v3 + + org.wso2.carbon.commons.fileupload. This bundle will export packages from + commons-fileupload.jar + + http://wso2.org + + + + wso2.releases + WSO2 internal Repository + https://maven.wso2.org/nexus/content/repositories/releases/ + + + + wso2.snapshots + Apache Snapshot Repository + https://maven.wso2.org/nexus/content/repositories/snapshots/ + + + + + + commons-fileupload + commons-fileupload + ${version.commons.fileupload} + true + + + + + + + org.apache.felix + maven-bundle-plugin + 1.4.0 + true + + + WSO2, Inc. + ${project.artifactId} + ${project.artifactId} + + org.apache.commons.fileupload.*;version="${version.commons.fileupload}" + + + !org.apache.commons.fileupload.*, + javax.servlet; version="${imp.pkg.version.javax.servlet}", + javax.servlet.http;version="${imp.pkg.version.javax.servlet}", + org.apache.commons.io;version="${org.apache.commons.io.version}", + org.apache.commons.io.output;version="${org.apache.commons.io.version}" + + + javax.portlet + + + + + + + + + [2.0, 3.0) + [3.1.0, 4.0.0) + 1.5 + + + diff --git a/csrfguard/3.1.0.wso2v5/pom.xml b/csrfguard/3.1.0.wso2v5/pom.xml new file mode 100644 index 000000000..f1177af57 --- /dev/null +++ b/csrfguard/3.1.0.wso2v5/pom.xml @@ -0,0 +1,91 @@ + + + + + + + org.wso2 + wso2 + 1 + + + 4.0.0 + org.wso2.orbit.org.owasp + csrfguard + bundle + org.owasp.csrfguard + 3.1.0.wso2v5 + + This bundle will export packages from owasp csrfguard + + http://wso2.org + + + + org.wso2.org.owasp + csrfguard + ${version.csrfguard} + true + + + + + + + org.apache.felix + maven-bundle-plugin + true + + + ${project.artifactId} + ${project.artifactId} + + org.owasp.csrfguard.*;version="${project.version}" + + + !org.owasp.csrfguardorg.*, + javax.servlet.jsp.*; version="${javax.servlet.jsp.version}", + javax.servlet.*;version="${javax.servlet.version}" + + + + + @csrfguard-${version.csrfguard}.jar + + + + + + + + + 3.1.0-wso2v2 + [3.0.0,4.0.0) + [2.3.0,2.4.0) + + + + + wso2.releases + WSO2 internal Repository + https://maven.wso2.org/nexus/content/repositories/releases/ + + + + diff --git a/encoder/1.2.0.wso2v3/pom.xml b/encoder/1.2.0.wso2v3/pom.xml new file mode 100644 index 000000000..c2862f309 --- /dev/null +++ b/encoder/1.2.0.wso2v3/pom.xml @@ -0,0 +1,86 @@ + + + + + + 4.0.0 + org.wso2.orbit.org.owasp.encoder + encoder + bundle + OWASP Java Encoder + ${encoder.orbit.version} + A custom bundle that wraps OWASP Java Encoder + http://www.wso2.com + + + + org.owasp.encoder + encoder + ${encoder.version} + true + + + org.owasp.encoder + encoder-jsp + ${encoder.version} + true + + + + + + wso2.releases + WSO2 internal Repository + https://maven.wso2.org/nexus/content/repositories/releases/ + + + + + + + org.apache.felix + maven-bundle-plugin + 2.3.7 + true + + + ${project.artifactId} + ${project.artifactId} + + org.owasp.encoder; version="${encoder.orbit.version}", + org.owasp.encoder.tag; version="${encoder.orbit.version}", + + + javax.servlet.jsp; version="${jsp-api.imp.pkg.version.range}";resolution:=optional, + javax.servlet.jsp.tagext; version="${jsp-api.imp.pkg.version.range}";resolution:=optional, + + + + + + + + + 1.2 + 1.2.0.wso2v3 + [2.3.0, 2.4.0) + + diff --git a/tomcat-jsp-api/9.0.85.wso2v2/pom.xml b/tomcat-jsp-api/9.0.85.wso2v2/pom.xml new file mode 100644 index 000000000..384c4c01d --- /dev/null +++ b/tomcat-jsp-api/9.0.85.wso2v2/pom.xml @@ -0,0 +1,81 @@ + + + + 4.0.0 + org.wso2.orbit.org.apache.tomcat + tomcat-jsp-api + 9.0.85.wso2v2 + bundle + tomcat jsp api orbit bundle - 9.0.85.wso2v1 + Apache Tomcat JSP API + + + + org.apache.tomcat + tomcat-jsp-api + ${version.tomcat} + true + + + + + + wso2.releases + WSO2 internal Repository + https://maven.wso2.org/nexus/content/repositories/releases/ + + + + + + + org.apache.felix + maven-bundle-plugin + 2.3.6 + true + + + ${project.artifactId} + ${project.artifactId} + + javax.servlet.jsp.*;version="2.3.0" + + + javax.el;version="[3.0.0, 3.1.0)", + javax.servlet;version="[2.6.0, 2.7.0)", + javax.servlet.http;version="[2.6.0, 2.7.0)", + *;resolution:=optional + + * + + osgi.contract;osgi.contract=JavaJSP;version:List<Version>="2.3,2.2,2.1,2" + + + + + + + + + 9.0.85 + + + diff --git a/tomcat-servlet-api/9.0.85.wso2v2/pom.xml b/tomcat-servlet-api/9.0.85.wso2v2/pom.xml new file mode 100644 index 000000000..1d2c7cae1 --- /dev/null +++ b/tomcat-servlet-api/9.0.85.wso2v2/pom.xml @@ -0,0 +1,79 @@ + + + + 4.0.0 + org.wso2.orbit.org.apache.tomcat + tomcat-servlet-api + 9.0.85.wso2v2 + bundle + tomcat servlet api orbit bundle - 9.0.85.wso2v1 + Apache Tomcat Servlet API + + + + org.apache.tomcat + tomcat-servlet-api + ${version.tomcat} + true + + + + + + wso2.releases + WSO2 internal Repository + https://maven.wso2.org/nexus/content/repositories/releases/ + + + + + + + org.apache.felix + maven-bundle-plugin + 2.4.0 + true + + + ${project.artifactId} + ${project.artifactId} + + javax.servlet.*;version="3.1.0" + + + + + *;resolution:=optional + + * + + osgi.contract;osgi.contract=JavaServlet;version:Version=3.1.0 + + + + + + + + + 9.0.85 + + diff --git a/tomcat/9.0.85.wso2v2/pom.xml b/tomcat/9.0.85.wso2v2/pom.xml new file mode 100644 index 000000000..2dbb83fe6 --- /dev/null +++ b/tomcat/9.0.85.wso2v2/pom.xml @@ -0,0 +1,142 @@ + + + + 4.0.0 + org.wso2.orbit.org.apache.tomcat + tomcat + 9.0.85.wso2v2 + bundle + tomcat orbit bundle - 9.0.85.wso2v1 + Apache Tomcat + + + + org.apache.tomcat + tomcat-dbcp + ${version.tomcat} + true + + + org.apache.tomcat.embed + tomcat-embed-core + ${version.tomcat} + true + + + org.apache.tomcat.embed + tomcat-embed-jasper + ${version.tomcat} + true + + + org.apache.tomcat + tomcat-websocket-api + ${version.tomcat} + true + + + org.apache.tomcat.embed + tomcat-embed-websocket + ${version.tomcat} + true + + + org.apache.tomcat + tomcat-jasper + ${version.tomcat} + true + + + org.apache.tomcat + tomcat-jaspic-api + ${version.tomcat} + true + + + org.apache.tomcat + tomcat-jasper-el + ${version.tomcat} + true + + + org.eclipse.jdt.core.compiler + ecj + ${version.ecj} + true + + + + + + wso2.releases + WSO2 internal Repository + https://maven.wso2.org/nexus/content/repositories/releases/ + + + + + + + org.apache.felix + maven-bundle-plugin + true + 2.4.0 + + + ${project.artifactId} + ${project.artifactId} + + !org.apache.tomcat.jdbc.pool.*, + !org.apache.juli.logging, + org.apache.jasper.*;version="9.0.85";-split-package:=merge-first, + org.apache.naming.*;version="${version.tomcat}", + org.apache.tomcat.*;version="${version.tomcat}";-split-package:=merge-first, + org.apache.catalina.*;version="${version.tomcat}", + org.apache.coyote.*;version="${version.tomcat}", + org.apache.el.*;version="${version.tomcat}";-split-package:=merge-first, + javax.websocket.*;version="1.1.0";-split-package:=merge-first, + javax.security.auth.message.*;version="6.0.0";-split-package:=merge-first + + + org.apache.juli + + + javax.annotation;version="0.0.0", + *;resolution:=optional + + * + + {maven-resources}, + @tomcat-embed-websocket-${version.tomcat}.jar!/META-INF/*, + src/main/resources + + patch.jar,. + + + + + + + + 9.0.85 + 4.6.1 + + diff --git a/tomcat/9.0.85.wso2v2/src/main/resources/META-INF/services/javax.el.ExpressionFactory b/tomcat/9.0.85.wso2v2/src/main/resources/META-INF/services/javax.el.ExpressionFactory new file mode 100644 index 000000000..fa0104868 --- /dev/null +++ b/tomcat/9.0.85.wso2v2/src/main/resources/META-INF/services/javax.el.ExpressionFactory @@ -0,0 +1 @@ +org.apache.el.ExpressionFactoryImpl From dc7ecfa813edda4f11393025d0e14cd2a83ac376 Mon Sep 17 00:00:00 2001 From: YasasRangika Date: Wed, 3 Jul 2024 16:01:31 +0530 Subject: [PATCH 2/2] Add changes for https://github.com/wso2/api-manager/issues/2943 --- abdera/1.0.0.wso2v4/pom.xml | 19 +- .../2.2.6.wso2v4/pom.xml | 2 +- log4j/1.2.17.wso2v1/pom.xml | 9 +- oltu/1.0.0.wso2v4/pom.xml | 105 ++ opensaml/3.3.1.wso2v12/pom.xml | 1150 +++++++++++++++++ tiles/3.0.7.wso2v2/pom.xml | 175 +++ .../tiles/CarbonUrlDefinitionsFactory.java | 38 + .../src/main/resources/META-INF/tiles-jsp.tld | 801 ++++++++++++ 8 files changed, 2283 insertions(+), 16 deletions(-) create mode 100644 oltu/1.0.0.wso2v4/pom.xml create mode 100644 opensaml/3.3.1.wso2v12/pom.xml create mode 100644 tiles/3.0.7.wso2v2/pom.xml create mode 100644 tiles/3.0.7.wso2v2/src/main/java/org/wso2/carbon/tiles/CarbonUrlDefinitionsFactory.java create mode 100644 tiles/3.0.7.wso2v2/src/main/resources/META-INF/tiles-jsp.tld diff --git a/abdera/1.0.0.wso2v4/pom.xml b/abdera/1.0.0.wso2v4/pom.xml index 8dfb27eb4..b80ea3988 100644 --- a/abdera/1.0.0.wso2v4/pom.xml +++ b/abdera/1.0.0.wso2v4/pom.xml @@ -75,21 +75,19 @@ org.apache.felix maven-bundle-plugin - + 2.4.0 true - ${project.artifactId} - WSO2 Inc - ${project.description} - ${project.artifactId} - - org.apache.abdera.*;version="${project.version}" - + ${pom.artifactId} + ${pom.artifactId} + org.apache.abdera.*;-split-package:=merge-first + + - !org.apache.abdera.*, javax.xml.stream.*;version="1.0.1", - javax.activation.*;version="[0.0.0, 2.0.0)" + javax.activation.*;version="[0.0.0, 2.0.0)", + *;resolution:=optional META-INF/services/org.apache.abdera.factory.ExtensionFactory=META-INF/services/org.apache.abdera.factory.ExtensionFactory, @@ -103,6 +101,7 @@ + 1.0-wso2v2 diff --git a/json-schema-validator-all/2.2.6.wso2v4/pom.xml b/json-schema-validator-all/2.2.6.wso2v4/pom.xml index 607a9a912..d777adbd6 100644 --- a/json-schema-validator-all/2.2.6.wso2v4/pom.xml +++ b/json-schema-validator-all/2.2.6.wso2v4/pom.xml @@ -125,7 +125,7 @@ [19.0.0,20.0.0] - [1.4.0,1.5.0) + [1.6.0,1.7.0) [2.6.0, 3.0.0) [2.6.0, 3.0.0) [2.6.0, 3.0.0) diff --git a/log4j/1.2.17.wso2v1/pom.xml b/log4j/1.2.17.wso2v1/pom.xml index 02ffa3b62..62ecc725f 100644 --- a/log4j/1.2.17.wso2v1/pom.xml +++ b/log4j/1.2.17.wso2v1/pom.xml @@ -29,8 +29,8 @@ - log4j - log4j + ch.qos.reload4j + reload4j ${version.log4j} @@ -73,8 +73,7 @@ - 1.2.17 - ${version.log4j}.wso2v1 + 1.2.19 + 1.2.17.wso2v1 - diff --git a/oltu/1.0.0.wso2v4/pom.xml b/oltu/1.0.0.wso2v4/pom.xml new file mode 100644 index 000000000..61fce818c --- /dev/null +++ b/oltu/1.0.0.wso2v4/pom.xml @@ -0,0 +1,105 @@ + + + + + 4.0.0 + org.wso2.orbit.org.apache.oltu.oauth2 + oltu + bundle + WSO2 Carbon Orbit - Apache OLTU Library + 1.0.0.wso2v4 + + This bundle will export packages from Apache OLTU library. + + http://wso2.org + + + + org.apache.oltu.oauth2 + org.apache.oltu.oauth2.common + ${oltu.version} + true + + + org.apache.oltu.oauth2 + org.apache.oltu.oauth2.authzserver + ${oltu.version} + true + + + org.apache.oltu.oauth2 + org.apache.oltu.oauth2.client + ${oltu.version} + true + + + + + + wso2.releases + WSO2 internal Repository + https://maven.wso2.org/nexus/content/repositories/releases/ + + + + wso2.snapshots + Apache Snapshot Repository + https://maven.wso2.org/nexus/content/repositories/snapshots/ + + + + + + + org.apache.felix + maven-bundle-plugin + 1.4.0 + true + + + WSO2 Inc + ${project.artifactId} + ${project.artifactId} + + org.apache.oltu.*; version="${project.version}" + + + !org.apache.oltu.*, + javax.servlet.*;version="${javax.servlet.version.range}", + org.apache.commons.codec.*;version="${org.apache.commons.codec.version.range}";resolution:=optional, + org.json.*;version="${org.json.version.range}", + org.slf4j.*;version="${org.slf4j.version.range}" + + + + + + + + + 1.0.0 + [2.6.0,5.0.0) + [1.4.0,2.0.0) + [3.0.0, 4.0.0) + [1.6.0,2.0.0) + + + diff --git a/opensaml/3.3.1.wso2v12/pom.xml b/opensaml/3.3.1.wso2v12/pom.xml new file mode 100644 index 000000000..c020a5976 --- /dev/null +++ b/opensaml/3.3.1.wso2v12/pom.xml @@ -0,0 +1,1150 @@ + + + + 4.0.0 + org.wso2.orbit.org.opensaml + opensaml + bundle + WSO2 Carbon Orbit - OpenSAML J Library + ${opensaml.orbit.version} + + This bundle will export packages from OpenSAML J library. + + http://wso2.org + + + + + org.opensaml + opensaml-core + ${opensaml.version} + true + + + commons-collections + commons-collections + + + commons-lang + commons-lang + + + jargs + jargs + + + org.apache.xerces + resolver + + + org.apache.xerces + xml-apis + + + org.apache.xerces + serializer + + + org.apache.xalan + xalan + + + org.apache.xerces + xercesImpl + + + + + + org.opensaml + opensaml-saml-impl + ${opensaml.version} + true + + + commons-collections + commons-collections + + + commons-lang + commons-lang + + + jargs + jargs + + + org.apache.xerces + resolver + + + org.apache.xerces + xml-apis + + + org.apache.xerces + serializer + + + org.apache.xalan + xalan + + + org.apache.xerces + xercesImpl + + + + + + org.opensaml + opensaml-soap-api + ${opensaml.version} + true + + + commons-collections + commons-collections + + + commons-lang + commons-lang + + + jargs + jargs + + + org.apache.xerces + resolver + + + org.apache.xerces + xml-apis + + + org.apache.xerces + serializer + + + org.apache.xalan + xalan + + + org.apache.xerces + xercesImpl + + + + + + org.opensaml + opensaml-soap-impl + ${opensaml.version} + true + + + commons-collections + commons-collections + + + commons-lang + commons-lang + + + jargs + jargs + + + org.apache.xerces + resolver + + + org.apache.xerces + xml-apis + + + org.apache.xerces + serializer + + + org.apache.xalan + xalan + + + org.apache.xerces + xercesImpl + + + + + + org.opensaml + opensaml-profile-api + ${opensaml.version} + true + + + commons-collections + commons-collections + + + commons-lang + commons-lang + + + jargs + jargs + + + org.apache.xerces + resolver + + + org.apache.xerces + xml-apis + + + org.apache.xerces + serializer + + + org.apache.xalan + xalan + + + org.apache.xerces + xercesImpl + + + + + org.opensaml + opensaml-profile-impl + ${opensaml.version} + true + + + commons-collections + commons-collections + + + commons-lang + commons-lang + + + jargs + jargs + + + org.apache.xerces + resolver + + + org.apache.xerces + xml-apis + + + org.apache.xerces + serializer + + + org.apache.xalan + xalan + + + org.apache.xerces + xercesImpl + + + + + + org.opensaml + opensaml-saml-api + ${opensaml.version} + true + + + commons-collections + commons-collections + + + commons-lang + commons-lang + + + jargs + jargs + + + org.apache.xerces + resolver + + + org.apache.xerces + xml-apis + + + org.apache.xerces + serializer + + + org.apache.xalan + xalan + + + org.apache.xerces + xercesImpl + + + + + + org.opensaml + opensaml-messaging-api + ${opensaml.version} + true + + + commons-collections + commons-collections + + + commons-lang + commons-lang + + + jargs + jargs + + + org.apache.xerces + resolver + + + org.apache.xerces + xml-apis + + + org.apache.xerces + serializer + + + org.apache.xalan + xalan + + + org.apache.xerces + xercesImpl + + + + + + org.opensaml + opensaml-messaging-impl + ${opensaml.version} + true + + + commons-collections + commons-collections + + + commons-lang + commons-lang + + + jargs + jargs + + + org.apache.xerces + resolver + + + org.apache.xerces + xml-apis + + + org.apache.xerces + serializer + + + org.apache.xalan + xalan + + + org.apache.xerces + xercesImpl + + + + + + org.opensaml + opensaml-security-api + ${opensaml.version} + true + + + commons-collections + commons-collections + + + commons-lang + commons-lang + + + jargs + jargs + + + org.apache.xerces + resolver + + + org.apache.xerces + xml-apis + + + org.apache.xerces + serializer + + + org.apache.xalan + xalan + + + org.apache.xerces + xercesImpl + + + + + + org.opensaml + opensaml-security-impl + ${opensaml.version} + true + + + commons-collections + commons-collections + + + commons-lang + commons-lang + + + jargs + jargs + + + org.apache.xerces + resolver + + + org.apache.xerces + xml-apis + + + org.apache.xerces + serializer + + + org.apache.xalan + xalan + + + org.apache.xerces + xercesImpl + + + + + + org.opensaml + opensaml-storage-api + ${opensaml.version} + true + + + commons-collections + commons-collections + + + commons-lang + commons-lang + + + jargs + jargs + + + org.apache.xerces + resolver + + + org.apache.xerces + xml-apis + + + org.apache.xerces + serializer + + + org.apache.xalan + xalan + + + org.apache.xerces + xercesImpl + + + + + + org.opensaml + opensaml-storage-impl + ${opensaml.version} + true + + + commons-collections + commons-collections + + + commons-lang + commons-lang + + + jargs + jargs + + + org.apache.xerces + resolver + + + org.apache.xerces + xml-apis + + + org.apache.xerces + serializer + + + org.apache.xalan + xalan + + + org.apache.xerces + xercesImpl + + + + + + org.opensaml + opensaml-xacml-api + ${opensaml.version} + true + + + commons-collections + commons-collections + + + commons-lang + commons-lang + + + jargs + jargs + + + org.apache.xerces + resolver + + + org.apache.xerces + xml-apis + + + org.apache.xerces + serializer + + + org.apache.xalan + xalan + + + org.apache.xerces + xercesImpl + + + + + + org.opensaml + opensaml-xacml-impl + ${opensaml.version} + true + + + commons-collections + commons-collections + + + commons-lang + commons-lang + + + jargs + jargs + + + org.apache.xerces + resolver + + + org.apache.xerces + xml-apis + + + org.apache.xerces + serializer + + + org.apache.xalan + xalan + + + org.apache.xerces + xercesImpl + + + + + + org.opensaml + opensaml-xacml-saml-api + ${opensaml.version} + true + + + commons-collections + commons-collections + + + commons-lang + commons-lang + + + jargs + jargs + + + org.apache.xerces + resolver + + + org.apache.xerces + xml-apis + + + org.apache.xerces + serializer + + + org.apache.xalan + xalan + + + org.apache.xerces + xercesImpl + + + + + + org.opensaml + opensaml-xacml-saml-impl + ${opensaml.version} + true + + + commons-collections + commons-collections + + + commons-lang + commons-lang + + + jargs + jargs + + + org.apache.xerces + resolver + + + org.apache.xerces + xml-apis + + + org.apache.xerces + serializer + + + org.apache.xalan + xalan + + + org.apache.xerces + xercesImpl + + + + + + org.opensaml + opensaml-xmlsec-api + ${opensaml.version} + true + + + commons-collections + commons-collections + + + commons-lang + commons-lang + + + jargs + jargs + + + org.apache.xerces + resolver + + + org.apache.xerces + xml-apis + + + org.apache.xerces + serializer + + + org.apache.xalan + xalan + + + org.apache.xerces + xercesImpl + + + + + + org.opensaml + opensaml-xmlsec-impl + ${opensaml.version} + true + + + commons-collections + commons-collections + + + commons-lang + commons-lang + + + jargs + jargs + + + org.apache.xerces + resolver + + + org.apache.xerces + xml-apis + + + org.apache.xerces + serializer + + + org.apache.xalan + xalan + + + org.apache.xerces + xercesImpl + + + + + + + + net.shibboleth.utilities + java-support + ${shibboleth.version} + true + + + commons-collections + commons-collections + + + commons-lang + commons-lang + + + jargs + jargs + + + org.apache.xerces + resolver + + + org.apache.xerces + xml-apis + + + org.apache.xerces + serializer + + + org.apache.xalan + xalan + + + org.apache.xerces + xercesImpl + + + + + + + org.wso2.orbit.joda-time + joda-time + ${joda-time.orbit.version} + + + + org.owasp.esapi + esapi + ${esapi.version} + true + + + commons-configuration + commons-configuration + + + commons-beanutils + commons-beanutils-core + + + commons-fileupload + commons-fileupload + + + commons-io + commons-io + + + commons-collections + commons-collections + + + log4j + log4j + + + xom + xom + + + org.beanshell + bsh-core + + + org.owasp.antisamy + antisamy + + + + + commons-codec + commons-codec + ${apache.commons.codec.version} + + + org.cryptacular + cryptacular + ${cryptacular.version} + runtime + + + + + + wso2.releases + WSO2 internal Repository + https://maven.wso2.org/nexus/content/repositories/releases/ + + + + + + + wso2.releases + WSO2 internal Repository + https://maven.wso2.org/nexus/content/repositories/releases/ + + true + daily + ignore + + + + wso2.public.releases + WSO2 Public Repository + https://maven.wso2.org/nexus/content/groups/wso2-public + + + + + + + org.apache.felix + maven-bundle-plugin + 2.4.0 + true + + + ${project.artifactId} + ${project.artifactId} + + org.opensaml.*; version="${opensaml.orbit.version}", + net.shibboleth.*; version="${opensaml.orbit.version}", + org.cryptacular.*; version="${cryptacular.version}", + + + + + !org.opensaml.*, + !net.shibboleth.*, + !org.cryptacular.*, + javax.crypto.*;version="${javax.crypto.version}", + javax.net.*;version="${javax.net.version}", + javax.security.*;version="${javax.security.version}", + javax.servlet.jsp.*;version="${javax.servlet.jsp.version}", + javax.servlet.*;version="${javax.servlet.version}", + javax.xml.*;version="${javax.xml.version}", + org.apache.axiom.om.impl.dom.jaxp;version="${axiom.osgi.version.range}", + org.apache.commons.beanutils;version="${org.apache.commons.beanutils.version}";resolution:=optional, + org.apache.commons.configuration;version="${org.apache.commons.configuration.version}";resolution:=optional, + org.apache.commons.fileupload.*;version="${org.apache.commons.fileupload.version}";resolution:=optional, + org.apache.commons.collections.iterators;version="${org.apache.commons.collections.iterators.version}"; + resolution:=optional, + org.apache.logging.log4j;version="${apache.log4j2.version}";resolution:=optional, + org.apache.xml.security.*;version="${org.apache.xml.security.version}";resolution:=optional, + org.apache.velocity.*;version="${org.apache.velocity.version}";resolution:=optional, + org.joda.time.*;version="${joda-time.orbit.version.range}", + org.bouncycastle.*;version="${org.bouncycastle.version}";resolution:=optional, + org.slf4j.*;version="${org.slf4j.version}", + org.w3c.*;version="${org.w3c.version}";resolution:=optional, + org.xml.sax.*;version="${org.xml.sax.version}";resolution:=optional, + org.owasp.esapi;resolution:=optional, + org.owasp.validator.html;version="${org.owasp.validator.html.version}";resolution:=optional, + + esapi;scope=compile|runtime;inline=false,commons-codec;inline=true, + + @opensaml-core-${opensaml.version}.jar!/**.xml, + @opensaml-core-${opensaml.version}.jar!/templates/**.vm, + @opensaml-core-${opensaml.version}.jar!/schema/**.xsd, + @opensaml-core-${opensaml.version}.jar!/conf/**, + @opensaml-core-${opensaml.version}.jar!/META-INF/services/**, + + @opensaml-saml-api-${opensaml.version}.jar!/**.xml, + @opensaml-saml-api-${opensaml.version}.jar!/templates/**.vm, + @opensaml-saml-api-${opensaml.version}.jar!/schema/**.xsd, + @opensaml-saml-api-${opensaml.version}.jar!/conf/**, + + @opensaml-saml-impl-${opensaml.version}.jar!/**.xml, + @opensaml-saml-impl-${opensaml.version}.jar!/templates/**.vm, + @opensaml-saml-impl-${opensaml.version}.jar!/schema/**.xsd, + @opensaml-saml-impl-${opensaml.version}.jar!/conf/**, + + @opensaml-messaging-api-${opensaml.version}.jar!/**.xml, + @opensaml-messaging-api-${opensaml.version}.jar!/templates/**.vm, + @opensaml-messaging-api-${opensaml.version}.jar!/schema/**.xsd, + @opensaml-messaging-api-${opensaml.version}.jar!/conf/**, + + @opensaml-messaging-impl-${opensaml.version}.jar!/**.xml, + @opensaml-messaging-impl-${opensaml.version}.jar!/templates/**.vm, + @opensaml-messaging-impl-${opensaml.version}.jar!/schema/**.xsd, + @opensaml-messaging-impl-${opensaml.version}.jar!/conf/**, + + @opensaml-soap-api-${opensaml.version}.jar!/**.xml, + @opensaml-soap-api-${opensaml.version}.jar!/templates/**.vm, + @opensaml-soap-api-${opensaml.version}.jar!/schema/**.xsd, + @opensaml-soap-api-${opensaml.version}.jar!/conf/**, + + @opensaml-soap-impl-${opensaml.version}.jar!/**.xml, + @opensaml-soap-impl-${opensaml.version}.jar!/templates/**.vm, + @opensaml-soap-impl-${opensaml.version}.jar!/schema/**.xsd, + @opensaml-soap-impl-${opensaml.version}.jar!/conf/**, + + @opensaml-profile-impl-${opensaml.version}.jar!/**.xml, + @opensaml-profile-impl-${opensaml.version}.jar!/templates/**.vm, + @opensaml-profile-impl-${opensaml.version}.jar!/schema/**.xsd, + @opensaml-profile-impl-${opensaml.version}.jar!/conf/**, + + @opensaml-security-api-${opensaml.version}.jar!/**.xml, + @opensaml-security-api-${opensaml.version}.jar!/templates/**.vm, + @opensaml-security-api-${opensaml.version}.jar!/schema/**.xsd, + @opensaml-security-api-${opensaml.version}.jar!/conf/**, + + @opensaml-security-impl-${opensaml.version}.jar!/**.xml, + @opensaml-security-impl-${opensaml.version}.jar!/templates/**.vm, + @opensaml-security-impl-${opensaml.version}.jar!/schema/**.xsd, + @opensaml-security-impl-${opensaml.version}.jar!/conf/**, + @opensaml-security-impl-${opensaml.version}.jar!/**.properties, + + @opensaml-storage-api-${opensaml.version}.jar!/**.xml, + @opensaml-storage-api-${opensaml.version}.jar!/templates/**.vm, + @opensaml-storage-api-${opensaml.version}.jar!/schema/**.xsd, + @opensaml-storage-api-${opensaml.version}.jar!/conf/**, + + @opensaml-storage-impl-${opensaml.version}.jar!/**.xml, + @opensaml-storage-impl-${opensaml.version}.jar!/templates/**.vm, + @opensaml-storage-impl-${opensaml.version}.jar!/schema/**.xsd, + @opensaml-storage-impl-${opensaml.version}.jar!/conf/**, + + @opensaml-xacml-api-${opensaml.version}.jar!/**.xml, + @opensaml-xacml-api-${opensaml.version}.jar!/templates/**.vm, + @opensaml-xacml-api-${opensaml.version}.jar!/schema/**.xsd, + @opensaml-xacml-api-${opensaml.version}.jar!/conf/**, + + @opensaml-xacml-impl-${opensaml.version}.jar!/**.xml, + @opensaml-xacml-impl-${opensaml.version}.jar!/templates/**.vm, + @opensaml-xacml-impl-${opensaml.version}.jar!/schema/**.xsd, + @opensaml-xacml-impl-${opensaml.version}.jar!/conf/**, + + @opensaml-xacml-saml-api-${opensaml.version}.jar!/**.xml, + @opensaml-xacml-saml-api-${opensaml.version}.jar!/templates/**.vm, + @opensaml-xacml-saml-api-${opensaml.version}.jar!/schema/**.xsd, + @opensaml-xacml-saml-api-${opensaml.version}.jar!/conf/**, + + @opensaml-xacml-saml-impl-${opensaml.version}.jar!/**.xml, + @opensaml-xacml-saml-impl-${opensaml.version}.jar!/templates/**.vm, + @opensaml-xacml-saml-impl-${opensaml.version}.jar!/schema/**.xsd, + @opensaml-xacml-saml-impl-${opensaml.version}.jar!/conf/**, + + @opensaml-xmlsec-api-${opensaml.version}.jar!/**.xml, + @opensaml-xmlsec-api-${opensaml.version}.jar!/templates/**.vm, + @opensaml-xmlsec-api-${opensaml.version}.jar!/schema/**.xsd, + @opensaml-xmlsec-api-${opensaml.version}.jar!/conf/**, + @opensaml-xmlsec-api-${opensaml.version}.jar!/META-INF/services/**, + + @opensaml-xmlsec-impl-${opensaml.version}.jar!/**.xml, + @opensaml-xmlsec-impl-${opensaml.version}.jar!/templates/**.vm, + @opensaml-xmlsec-impl-${opensaml.version}.jar!/schema/**.xsd, + @opensaml-xmlsec-impl-${opensaml.version}.jar!/conf/**, + @opensaml-xmlsec-impl-${opensaml.version}.jar!/META-INF/services/**, + + @java-support-${shibboleth.version}.jar!/**.xml, + @java-support-${shibboleth.version}.jar!/templates/**.vm, + @java-support-${shibboleth.version}.jar!/schema/**.xsd, + @java-support-${shibboleth.version}.jar!/conf/**, + + + + + + + + + + + 3.3.1 + + 7.3.0 + + 1.16.0 + + 2.9.4.wso2v1 + [2.9.4,3.0.0) + 2.5.3.1 + + + 3.3.1.wso2v12 + + [0.0.0,1.0.0) + [0.0.0,1.0.0) + [0.0.0,1.0.0) + [2.2.0,5.0.0) + [2.6.0,5.0.0) + [0.0.0,1.0.0) + [0.0,1.0) + [3.1.0,3.2.0) + [3.1.0,3.2.0) + [1.4.2,2.4.0) + [1.60.0,2.00.0) + [2.2,2.3) + [1.6.0,1.8.0) + [0.0.0,1.0.0) + [0.0.0,1.0.0) + [1.2.11, 2.0.0) + [2.4.1,3.0.0) + [2.17.1,3.0.0) + [1.4.0,2.0.0) + [3.2.2,4.0.0) + [1.8.0,2.0.0) + [1.6.0,2.0.0) + [1.2.2,2.0.0) + [0.0.0,1.0.0) + [0.0.0,1.0.0) + [0.0.0,1.0.0) + [0.0.0,1.0.0) + [0.0.0,1.0.0) + 1.2.5 + + + diff --git a/tiles/3.0.7.wso2v2/pom.xml b/tiles/3.0.7.wso2v2/pom.xml new file mode 100644 index 000000000..f21e47f15 --- /dev/null +++ b/tiles/3.0.7.wso2v2/pom.xml @@ -0,0 +1,175 @@ + + + 4.0.0 + org.wso2.orbit.org.apache.tiles + tiles-jsp + bundle + tiles.wso2 + This bundle will represent org.wso2.carbon.tiles + 3.0.7.wso2v2 + http://wso2.org + + + + wso2.releases + WSO2 internal Repository + https://maven.wso2.org/nexus/content/repositories/releases/ + + + + + + javax.servlet + javax.servlet-api + ${javax.servlet.api.version} + true + + + org.apache.tiles + tiles-jsp + ${apache.tiles.version} + true + + + commons-digester + commons-digester + ${commons.digester.version} + true + + + org.apache.tiles + tiles-request-jsp + 1.0.7 + true + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.5.1 + + 17 + 17 + + + + org.apache.felix + maven-bundle-plugin + ${maven.bundle.plugin.version} + true + + + ${pom.artifactId} + ${pom.artifactId} + + org.wso2.carbon.tiles; version=1.0.0, + org.apache.tiles; + version=${apache.tiles.version};-split-package:=merge-first, + org.apache.tiles.jsp.taglib; version=${apache.tiles.version}, + org.apache.tiles.jsp.taglib.definition; version=${apache.tiles.version}, + org.apache.tiles.jsp.context; version=${apache.tiles.version}, + org.apache.tiles.context; version=${apache.tiles.version}, + org.apache.tiles.context.enhanced; version=${apache.tiles.version}, + org.apache.tiles.access; version=${apache.tiles.version}, + org.apache.tiles.mgmt; version=${apache.tiles.version}, + org.apache.tiles.beans; version=${apache.tiles.version}, + org.apache.tiles.definition; version=${apache.tiles.version}, + org.apache.tiles.definition.digester; version=${apache.tiles.version}, + org.apache.tiles.definition.util; version=${apache.tiles.version}, + org.apache.tiles.factory; version=${apache.tiles.version}, + org.apache.tiles.impl; version=${apache.tiles.version}, + org.apache.tiles.impl.mgmt; version=${apache.tiles.version}, + org.apache.tiles.locale; version=${apache.tiles.version}, + org.apache.tiles.locale.impl; version=${apache.tiles.version}, + org.apache.tiles.portlet.context; version=${apache.tiles.version}, + org.apache.tiles.preparer; version=${apache.tiles.version}, + org.apache.tiles.resources; version=${apache.tiles.version}, + org.apache.tiles.servlet.context; version=${apache.tiles.version}, + org.apache.tiles.util; version=${apache.tiles.version}, + org.apache.tiles.web.startup; version=${apache.tiles.version}, + org.apache.tiles.web.util; version=${apache.tiles.version}, + org.apache.tiles.request; version=${apache.tiles.version}, + org.apache.tiles.request.reflect; version=${apache.tiles.version}, + org.apache.tiles.request.servlet; version=${apache.tiles.version}, + org.apache.tiles.startup; version=${apache.tiles.version}, + + + javax.servlet;version=${javax.servlet.api.version}, + javax.servlet.http;version=${javax.servlet.api.version}, + javax.servlet.jsp;version="2.0.0", + javax.servlet.jsp.tagext;version="2.0.0", + org.apache.commons.digester;version=${commons.digester.version}, + !org.wso2.carbon.tiles, + !org.apache.tiles; version=${apache.tiles.version}, + !org.apache.tiles.jsp.taglib; version=${apache.tiles.version}, + !org.apache.tiles.jsp.taglib.definition; + version=${apache.tiles.version}, + !org.apache.tiles.jsp.context; version=${apache.tiles.version}, + !org.apache.tiles.context; version=${apache.tiles.version}, + !org.apache.tiles.context.enhanced; version=${apache.tiles.version}, + !org.apache.tiles.access; version=${apache.tiles.version}, + !org.apache.tiles.mgmt; version=${apache.tiles.version}, + !org.apache.tiles.beans; version=${apache.tiles.version}, + !org.apache.tiles.definition; version=${apache.tiles.version}, + !org.apache.tiles.definition.digester; version=${apache.tiles.version}, + !org.apache.tiles.definition.util; version=${apache.tiles.version}, + !org.apache.tiles.factory; version=${apache.tiles.version}, + !org.apache.tiles.impl; version=${apache.tiles.version}, + !org.apache.tiles.impl.mgmt; version=${apache.tiles.version}, + !org.apache.tiles.locale; version=${apache.tiles.version}, + !org.apache.tiles.locale.impl; version=${apache.tiles.version}, + !org.apache.tiles.portlet.context; version=${apache.tiles.version}, + !org.apache.tiles.preparer; version=${apache.tiles.version}, + !org.apache.tiles.resources; version=${apache.tiles.version}, + !org.apache.tiles.servlet.context; version=${apache.tiles.version}, + !org.apache.tiles.util; version=${apache.tiles.version}, + !org.apache.tiles.web.startup; version=${apache.tiles.version}, + !org.apache.tiles.web.util; version=${apache.tiles.version}, + !org.apache.tiles.request; version=${apache.tiles.version}, + !org.apache.tiles.request.reflect; version=${apache.tiles.version}, + !org.apache.tiles.request.servlet; version=${apache.tiles.version}, + !org.apache.tiles.startup; version=${apache.tiles.version}, + *;resolution:=optional + + + src/main/resources + + . + + *;scope=compile|runtime;inline=false;artifactId=!tiles-jsp|tiles-core|tiles-api|commons-logging|commons-logging-api + + true + + + + + + + + 3.0.7 + 2.0 + 4.0.1 + 5.1.9 + + diff --git a/tiles/3.0.7.wso2v2/src/main/java/org/wso2/carbon/tiles/CarbonUrlDefinitionsFactory.java b/tiles/3.0.7.wso2v2/src/main/java/org/wso2/carbon/tiles/CarbonUrlDefinitionsFactory.java new file mode 100644 index 000000000..a19fb4dff --- /dev/null +++ b/tiles/3.0.7.wso2v2/src/main/java/org/wso2/carbon/tiles/CarbonUrlDefinitionsFactory.java @@ -0,0 +1,38 @@ +/* + * Copyright 2017 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.wso2.carbon.tiles; + +import org.apache.tiles.context.TilesRequestContextHolder; +import org.apache.tiles.definition.UnresolvingLocaleDefinitionsFactory; + +/** + * This factory is created extending UrlDefinitionsFactory, which is the default + * Tiles2 definition handler. Due to jndi issue with locale reading, we are extending + * to Carbon specific needs + */ +public class CarbonUrlDefinitionsFactory extends UnresolvingLocaleDefinitionsFactory { + + /** + * In Carbon main definition will be main.layout and this will be processed in + * deployment time. Thus, we can safely assume that the context is processed by this time + * We are ignoring the Locale processing, which could be dealt with the time. + */ + public boolean isContextProcessed(TilesRequestContextHolder tilesContext) { + return true; + } + +} + diff --git a/tiles/3.0.7.wso2v2/src/main/resources/META-INF/tiles-jsp.tld b/tiles/3.0.7.wso2v2/src/main/resources/META-INF/tiles-jsp.tld new file mode 100644 index 000000000..5250bb207 --- /dev/null +++ b/tiles/3.0.7.wso2v2/src/main/resources/META-INF/tiles-jsp.tld @@ -0,0 +1,801 @@ + + + + + 2.0 + 1.2 + tiles + http://tiles.apache.org/tags-tiles + + This tag library provides Tiles tags.

+ ]]> +
+ + insertTemplate + org.apache.tiles.jsp.taglib.InsertTemplateTag + JSP + + Insert a template.

+

Insert a template with the possibility to pass + parameters (called attributes). + A template can be seen as a procedure that can take parameters or attributes. + <tiles:insertTemplate> allows to define these attributes + and pass them to the inserted jsp page, called template. + Attributes are defined using nested tag <tiles:put> or + <tiles:putList>. +

+

You must specify

  • template attribute, for inserting a template

    + +

    Example :

    +
    +        
    +          <tiles:insertTemplate template="/basic/myLayout.jsp" flush="true">
    +             <tiles:put name="title" value="My first page" />
    +             <tiles:put name="header" value="/common/header.jsp" />
    +             <tiles:put name="footer" value="/common/footer.jsp" />
    +             <tiles:put name="menu" value="/basic/menu.jsp" />
    +             <tiles:put name="body" value="/basic/helloBody.jsp" />
    +          </tiles:insert>
    +        
    +      
    + ]]> + + + template + true + true + + A string representing the URI of a template (for example, a JSP + page). +

    + ]]> +
    +
    + + flush + false + false + boolean + + True or false. If true, current page out stream is flushed + before insertion.

    + ]]> +
    +
    + + ignore + false + true + boolean + + If this attribute is set to true, and the attribute specified by the + name does not exist, simply return without writing anything. The + default value is false, which will cause a runtime exception to be + thrown.

    + ]]> +
    +
    + + role + false + true + + If the user is in the specified role, the tag is taken into account; + otherwise, the tag is ignored (skipped).

    + ]]> +
    +
    + + + preparer + false + true + + The fully qualified class name of the preparer. + + + + + insertDefinition + org.apache.tiles.jsp.taglib.InsertDefinitionTag + JSP + + Insert a definition.

    +

    Insert a definition with the possibility to override and specify + parameters (called attributes). + A definition can be seen as a (partially or totally) filled template that + can override or complete attribute values. + <tiles:insertDefinition> allows to define these attributes + and pass them to the inserted jsp page, called template. + Attributes are defined using nested tag <tiles:put> or + <tiles:putList>. +

    +

    You must specify name tag attribute, for inserting a definition from + definitions factory.

    +

    Example :

    +
    +        
    +          <tiles:insertDefinition name=".my.tiles.defininition flush="true">
    +             <tiles:put name="title" value="My first page" />
    +             <tiles:put name="header" value="/common/header.jsp" />
    +             <tiles:put name="footer" value="/common/footer.jsp" />
    +             <tiles:put name="menu" value="/basic/menu.jsp" />
    +             <tiles:put name="body" value="/basic/helloBody.jsp" />
    +          </tiles:insertDefinition>
    +        
    +      
    + ]]> +
    + + name + true + true + + Name of the definition to insert.

    + ]]> +
    +
    + + flush + false + false + boolean + + True or false. If true, current page out stream is flushed + before insertion.

    + ]]> +
    +
    + + ignore + false + true + boolean + + If this attribute is set to true, and the attribute specified by the + name does not exist, simply return without writing anything. The + default value is false, which will cause a runtime exception to be + thrown.

    + ]]> +
    +
    + + role + false + true + + If the user is in the specified role, the tag is taken into account; + otherwise, the tag is ignored (skipped).

    + ]]> +
    +
    + + + preparer + false + true + + The fully qualified class name of preparer. + + +
    + + insertAttribute + org.apache.tiles.jsp.taglib.InsertAttributeTag + JSP + + Inserts the value of an attribute into the page.

    +

    This tag can be flexibly used to insert the value of an attribute into a page. + As in other usages in Tiles, every attribute can be determined to have a "type", + either set explicitly when it was defined, or "computed". If the type is not explicit, then + if the attribute value is a valid definition, it will be inserted as such. Otherwise, + if it begins with a "/" character, it will be treated as a "template". Finally, if it + has not otherwise been assigned a type, it will be treated as a String and included without + any special handling.

    + +

    Example :

    +
    +        
    +          
    +        
    +      
    + ]]> +
    + + name + false + true + + Name of the attribute to insert. This attribute will be ignored if + the value attribute is specified.

    + ]]> +
    +
    + + value + false + true + java.lang.Object + + Attribute object to render directly. If it specified, the name + attribute will be ignored.

    + ]]> +
    +
    + + flush + false + false + boolean + + True or false. If true, current page out stream is flushed + before insertion.

    + ]]> +
    +
    + + ignore + false + true + boolean + + If this attribute is set to true, and the attribute specified by the + name does not exist, simply return without writing anything. The + default value is false, which will cause a runtime exception to be + thrown.

    + ]]> +
    +
    + + role + false + true + + If the user is in the specified role, the tag is taken into account; + otherwise, the tag is ignored (skipped).

    + ]]> +
    +
    + + preparer + false + true + + The fully qualified name of the preparer. + + +
    + + definition + org.apache.tiles.jsp.taglib.definition.DefinitionTag + JSP + + Create a definition at runtime. +

    +

    Create a new definition at runtime. + Newly created definition will be available across the entire request. +

    ]]> +
    + + name + true + true + + Specifies the name under which the newly created definition bean + will be saved.

    + ]]> +
    +
    + + template + false + true + + A string representing the URI of a template + (a JSP page).

    + ]]> +
    +
    + + role + false + true + + Role to check before inserting this definition. If role is not + defined for current user, definition is not inserted. Checking is + done at insert time, not during definition process.

    + ]]> +
    +
    + + extends + false + true + + Name of a parent definition that is used to initialize this new + definition. Parent definition is searched in definitions factory.

    + ]]> +
    +
    + + preparer + false + true + + Specifies the preparer name to use. The specified preparer will + be executed before rendering this newly created definition.

    + ]]> +
    +
    +
    + + putAttribute + org.apache.tiles.jsp.taglib.PutAttributeTag + JSP + + Put an attribute in enclosing attribute container tag.

    +

    + Enclosing attribute container tag can be : +

      +
    • <initContainer>
    • +
    • <definition>
    • +
    • <insertAttribute>
    • +
    • <insertDefinition>
    • +
    • <putListAttribute>
    • +
    + (or any other tag which implements the {@link PutAttributeTagParent} interface. + Exception is thrown if no appropriate tag can be found.

    +

    Put tag can have following atributes : +

      +
    • name : Name of the attribute
    • +
    • value : value to put as attribute
    • +
    • type : value type. Only valid if value is a String and is set by + value="something" or by a bean. + Possible type are : string (value is used as direct string), + template (value is used as a page url to insert), + definition (value is used as a definition name to insert)
    • +
    • direct : Specify if value is to be used as a direct string or as a + page url to insert. This is another way to specify the type. It only apply + if value is set as a string, and type is not present.
    • +
    • beanName : Name of a bean used for setting value. Only valid if value is not set. + If property is specified, value come from bean's property. Otherwise, bean + itself is used for value.
    • +
    • beanProperty : Name of the property used for retrieving value.
    • +
    • beanScope : Scope containing bean.
    • +
    • role : Role to check when 'insert' will be called. If enclosing tag is + <insert>, role is checked immediately. If enclosing tag is + <definition>, role will be checked when this definition will be + inserted.
    • +

    +

    Value can also come from tag body. Tag body is taken into account only if + value is not set by one of the tag attributes. In this case Attribute type is + "string", unless tag body define another type.

    + ]]> +
    + + name + true + true + + Name of the attribute.

    + ]]> +
    +
    + + value + false + true + java.lang.Object + + Attribute value. Could be a String or an Object. + Value can come from a direct assignment (value="aValue") or from a bean. + One of 'value' 'content' or 'beanName' must be present.

    + ]]> +
    +
    + + type + false + false + + Specify content type: string, template or definition.

    +
      +
    • String : Content is printed directly.
    • +
    • template : Content is included from specified URL. Value is used as an URL.
    • +
    • definition : Value is the name of a definition defined in factory (xml file). Definition will be searched + in the inserted tile, in a <tiles:insert attribute="attributeName"> tag, where 'attributeName' + is the name used for this tag.
    • +
    + ]]> +
    +
    + + role + false + true + + + If the user is in the specified role, the tag is taken into account; + otherwise, the tag is ignored (skipped). +

    + ]]> +
    +
    +
    + + putListAttribute + org.apache.tiles.jsp.taglib.PutListAttributeTag + JSP + + Declare a list that will be pass as attribute to tile. +

    +

    Declare a list that will be pass as attribute to tile. + List elements are added using the tag 'add'. + This tag can only be used inside 'insert' or 'definition' tag.

    + ]]> +
    + + name + true + true + + Name of the list.

    + ]]> +
    +
    +
    + + addAttribute + + org.apache.tiles.jsp.taglib.AddAttributeTag + JSP + + Add an element to the surrounding list. + Equivalent to 'put', but for list element.

    + +

    Add an element to the surrounding list. + This tag can only be used inside putList tag. + Value can come from a direct assignment (value="aValue") or from a bean. + One of 'value' or 'beanName' must be present.

    + ]]> +
    + + value + false + true + java.lang.Object + + Attribute value. Can be a String or Object.

    + ]]> +
    +
    + + type + false + false + + Specify content type: string, template or definition.

    +
      +
    • String : Content is printed directly.
    • +
    • template : Content is included from specified URL. Value is used as an URL.
    • +
    • definition : Value denote a definition defined in factory (xml file). Definition will be searched + in the inserted tile, in a <insert attribute="attributeName"> tag, where 'attributeName' + is the name used for this tag.
    • +
    + ]]> +
    +
    + + role + false + true + + If the user is in the specified role, the tag is taken into account; + otherwise, the tag is ignored (skipped).

    +

    The role isn't taken into account if <add> + tag is used in a definition.

    + ]]> +
    +
    +
    + + addListAttribute + org.apache.tiles.jsp.taglib.AddListAttributeTag + JSP + + Declare a list that will be pass as attribute to tile. +

    +

    Declare a list that will be pass as attribute to tile. + List elements are added using the tag 'add'. + This tag can only be used inside 'insert' or 'definition' tag.

    + ]]> +
    +
    + + getAsString + org.apache.tiles.jsp.taglib.GetAsStringTag + empty + + + Render the value of the specified template attribute to the current JspWriter +

    + +

    Retrieve the value of the specified template attribute + property, and render it to the current JspWriter as a String. + The usual toString() conversions is applied on found value.

    +

    Throw a JSPException if named value is not found.

    + ]]> +
    + + name + true + true + + Attribute name.

    + ]]> +
    +
    + + ignore + false + true + boolean + + + If this attribute is set to true, and the attribute specified by the name + does not exist, simply return without writing anything. The default value is false, which will + cause a runtime exception to be thrown. +

    + ]]> +
    +
    + + role + false + true + + + If the user is in the specified role, the tag is taken into account; + otherwise, the tag is ignored (skipped). +

    + ]]> +
    +
    +
    + + useAttribute + org.apache.tiles.jsp.taglib.UseAttributeTag + org.apache.tiles.jsp.taglib.UseAttributeTag$Tei + empty + + Use attribute value inside page.

    +

    Declare a Java variable, and an attribute in the specified scope, + using tile attribute value.

    +

    Java variable and attribute will have the name specified by 'id', + or the original name if not specified.

    + ]]> +
    + + id + false + true + + Declared attribute and variable name.

    + ]]> +
    +
    + + classname + false + true + + Class of the declared variable.

    + ]]> +
    +
    + + scope + false + false + + Scope of the declared attribute. Default to 'page'.

    + ]]> +
    +
    + + name + true + true + + Tile's attribute name.

    + ]]> +
    +
    + + ignore + false + true + boolean + + + If this attribute is set to true, and the attribute specified by the name + does not exist, simply return without error. The default value is false, which will + cause a runtime exception to be thrown. +

    + ]]> +
    +
    +
    + + importAttribute + org.apache.tiles.jsp.taglib.ImportAttributeTag + empty + + Import Tile's attribute in specified context.

    +

    Import attribute from tile to requested scope. + Attribute name and scope are optional. If not specified, all tile + attributes are imported in page scope. + Once imported, an attribute can be used as any other beans from jsp + contexts.

    + ]]> +
    + + name + false + true + + Tile's attribute name. If not specified, all attributes are + imported.

    + ]]> +
    +
    + + toName + false + true + + Name of the destination attribute. If not specified, the name will + be the same as specified in name attribute

    + ]]> +
    +
    + + scope + false + false + + Scope into which attribute is imported. Default to page.

    + ]]> +
    +
    + + ignore + false + true + boolean + + If this attribute is set to true, and the attribute specified by + the name does not exist, simply return without error. The default + value is false, which will cause a runtime exception to be thrown.

    + ]]> +
    +
    +
    + + initContainer + org.apache.tiles.jsp.taglib.definition.InitContainerTag + JSP + + Initialize the TilesContainer.

    +

    + In order to use the Tiles system, a TilesContainer must be instantiated. + This initialization is generally done by the TilesListener (or perhaps the + TilesServlet or TilesFilter). +

    +

    + If the intialization needs to be dynamic, you can initialize the container using + this tag. Realize however, that this tag MUST be executed prior to invoking + any other definitions. Additionally, the initilization may only be done once, + and any subsequent invocations will be ignored. +

    + ]]> +
    + + containerFactory + false + true + Container Factory implementation used to instantiate the container.

    ]]>
    +
    +
    + + + destroyContainer + org.apache.tiles.jsp.taglib.definition.DestroyContainerTag + empty + + Destroy the TilesContainer.

    + ]]> +
    +
    + +