+
+
+
diff --git a/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/shortcuts-index.xsl b/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/shortcuts-index.xsl
index c49c5ccfc..a4e103c89 100755
--- a/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/shortcuts-index.xsl
+++ b/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/shortcuts-index.xsl
@@ -4,7 +4,12 @@
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
version="1.0">
-
+
+
+
diff --git a/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/subsite-index.xsl b/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/subsite-index.xsl
index a46650d03..cb04a688c 100755
--- a/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/subsite-index.xsl
+++ b/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/subsite-index.xsl
@@ -4,7 +4,13 @@
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
version="1.0">
+
+
+
+
diff --git a/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/terms-index.css b/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/terms-index.css
index b369a874f..15fd56956 100755
--- a/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/terms-index.css
+++ b/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/terms-index.css
@@ -1,2 +1,6 @@
@import url(/css/acs-master.css);
-@import url(/ccm-ldn-terms/__ccm__/apps/terms/xsl/index.css);
+/* Following import is valid if terms is executed in its own */
+/* web application context (ccm-ldn-terms) */
+/* @import url(/ccm-ldn-terms/__ccm__/apps/terms/xsl/index.css); */
+/* import if installed in the main (common) web context */
+@import url(/__ccm__/apps/terms/xsl/index.css);
diff --git a/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/terms-index.xsl b/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/terms-index.xsl
index 9d4811bf9..0ee053d22 100755
--- a/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/terms-index.xsl
+++ b/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/terms-index.xsl
@@ -4,7 +4,12 @@
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
version="1.0">
+
+
+
diff --git a/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/theme-index.xsl b/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/theme-index.xsl
index e1072552e..44121cbda 100755
--- a/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/theme-index.xsl
+++ b/ccm-ldn-aplaws/web/__ccm__/themes/aplaws/theme-index.xsl
@@ -4,7 +4,13 @@
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
version="1.0">
+
+
+
+
diff --git a/ccm-ldn-atoz/application.xml b/ccm-ldn-atoz/application.xml
index 483fc0ea0..b1c84ac24 100755
--- a/ccm-ldn-atoz/application.xml
+++ b/ccm-ldn-atoz/application.xml
@@ -3,7 +3,9 @@
name="ccm-ldn-atoz"
prettyName="A-Z"
version="6.6.0"
- release="4">
+ release="4"
+ webapp="ROOT">
+
@@ -22,4 +24,5 @@
The Red Hat Web Application Framework is a platform for writing
database-backed web applications in Java.
+
diff --git a/ccm-ldn-atoz/doc/atoz-standalone/README b/ccm-ldn-atoz/doc/atoz-standalone/README
new file mode 100644
index 000000000..266de3f1a
--- /dev/null
+++ b/ccm-ldn-atoz/doc/atoz-standalone/README
@@ -0,0 +1,23 @@
+Up to APLAWS version 1.0.4 atoz had been installed into its own
+application context: [webapps]/ccm-ldn-atoz.
+
+Now it is installed inside the main APLAWS application context along
+with all other applications.
+
+If shortcuts should be installed as its own web context again following
+modifications are necessary:
+1. remove webapp="xxx" from application.xml
+2. move the files in this dir to WEB-INF/
+3. change src/com/ad/london/atoz/AtoZ.java
+ method getServletContext() as back to "/files"
+4. edit __ccm__/.../xsl/index.xsl according the comment
+5. edit in ccm-ldn-aplaws /web/__ccm__/themes/aplaws/atoz.xml
+ according to the comment
+
+
+Running it in its own webapplication context nevertheless is not suggestive.
+It needs several xsl files of the main application (esp. core) for basic
+operations, which hac been directly mapped from the main applications directory
+tree into its own directory tree. So no module separation is possible, no
+security context useable etc.
+
diff --git a/ccm-ldn-atoz/web/WEB-INF/bebop-define.tld b/ccm-ldn-atoz/doc/atoz-standalone/bebop-define.tld
similarity index 100%
rename from ccm-ldn-atoz/web/WEB-INF/bebop-define.tld
rename to ccm-ldn-atoz/doc/atoz-standalone/bebop-define.tld
diff --git a/ccm-ldn-atoz/web/WEB-INF/bebop-show.tld b/ccm-ldn-atoz/doc/atoz-standalone/bebop-show.tld
similarity index 100%
rename from ccm-ldn-atoz/web/WEB-INF/bebop-show.tld
rename to ccm-ldn-atoz/doc/atoz-standalone/bebop-show.tld
diff --git a/ccm-ldn-atoz/web/WEB-INF/web.xml b/ccm-ldn-atoz/doc/atoz-standalone/web.xml
similarity index 100%
rename from ccm-ldn-atoz/web/WEB-INF/web.xml
rename to ccm-ldn-atoz/doc/atoz-standalone/web.xml
diff --git a/ccm-ldn-atoz/src/com/arsdigita/london/atoz/AtoZ.java b/ccm-ldn-atoz/src/com/arsdigita/london/atoz/AtoZ.java
index b9073548d..77279fe9c 100755
--- a/ccm-ldn-atoz/src/com/arsdigita/london/atoz/AtoZ.java
+++ b/ccm-ldn-atoz/src/com/arsdigita/london/atoz/AtoZ.java
@@ -34,6 +34,10 @@ import com.arsdigita.util.Assert;
import java.util.List;
import java.util.ArrayList;
+/**
+ * Base class of the AtoZ application (module)
+ *
+ */
public class AtoZ extends Application {
public static final String BASE_DATA_OBJECT_TYPE
@@ -60,14 +64,6 @@ public class AtoZ extends Application {
public AtoZ(OID oid) {
super(oid);
}
-
- public String getContextPath() {
- return "/ccm-ldn-atoz";
- }
-
- public String getServletPath() {
- return "/files";
- }
public void addProvider(AtoZProvider provider) {
DataObject link = add(PROVIDERS, provider);
@@ -101,9 +97,50 @@ public class AtoZ extends Application {
public static Element newElement(String name) {
- Assert.truth(name.indexOf(":") == -1, "name does not contain :");
+ Assert.isTrue(name.indexOf(":") == -1, "name does not contain :");
return new Element("atoz:" + name,
"http://xmlns.redhat.com/atoz/1.0");
}
+
+// /*
+// * Application specific method only required if installed in its own
+// * web application context
+// */
+// public String getContextPath() {
+// return "/ccm-ldn-atoz";
+// }
+
+ /**
+ * Returns the path name of the location of the applications servlet/JSP.
+ *
+ * The method overwrites the super class to provide an application specific
+ * location for servlets/JSP. This is necessary if you whish to install the
+ * module (application) along with others in one context. If you install the
+ * module into its own context (no longer recommended for versions newer
+ * than 1.0.4) you may use a standard location.
+ *
+ * Usually it is a symbolic name/path, which will be mapped in the web.xml
+ * to the real location in the file system. Example:
+ *
+ * atoz-files
+ * com.arsdigita.web.ApplicationFileServlet
+ *
+ * template-path
+ * /templates/ccm-ldn-atoz
+ *
+ *
+ *
+ *
+ * atoz-files
+ * /ccm-ldn-atoz/files/*
+ *
+ *
+ * @return path name to the applications servlet/JSP
+ */
+ public String getServletPath() {
+ // return "/files";
+ return "/ccm-ldn-atoz/files";
+ }
+
}
diff --git a/ccm-ldn-atoz/web/WEB-INF/web.xml-atoz.in b/ccm-ldn-atoz/web/WEB-INF/web.xml-atoz.in
new file mode 100755
index 000000000..1dbb9ecd1
--- /dev/null
+++ b/ccm-ldn-atoz/web/WEB-INF/web.xml-atoz.in
@@ -0,0 +1,19 @@
+
+
+
+ atoz-files
+ com.arsdigita.web.ApplicationFileServlet
+
+ template-path
+ /templates/ccm-ldn-atoz
+
+
+
+
+
+
+ atoz-files
+ /ccm-ldn-atoz/files/*
+
+
+
diff --git a/ccm-ldn-atoz/web/__ccm__/apps/atoz/xsl/index.xsl b/ccm-ldn-atoz/web/__ccm__/apps/atoz/xsl/index.xsl
index 0ed0c5dec..54fdf2e14 100755
--- a/ccm-ldn-atoz/web/__ccm__/apps/atoz/xsl/index.xsl
+++ b/ccm-ldn-atoz/web/__ccm__/apps/atoz/xsl/index.xsl
@@ -6,10 +6,16 @@
xmlns:atoz="http://xmlns.redhat.com/atoz/1.0"
version="1.0">
+
+
+
+
+
diff --git a/ccm-ldn-exporter/application.xml b/ccm-ldn-exporter/application.xml
index 2f65c243f..b79605400 100755
--- a/ccm-ldn-exporter/application.xml
+++ b/ccm-ldn-exporter/application.xml
@@ -3,7 +3,8 @@
name="ccm-ldn-exporter"
prettyName="exporter"
version="6.5.0"
- release="1">
+ release="1"
+ webapp="ROOT">
diff --git a/ccm-ldn-importer/application.xml b/ccm-ldn-importer/application.xml
index 1ea4ba6be..4daada172 100755
--- a/ccm-ldn-importer/application.xml
+++ b/ccm-ldn-importer/application.xml
@@ -3,7 +3,8 @@
name="ccm-ldn-importer"
prettyName="Importer"
version="6.5.0"
- release="1">
+ release="1"
+ webapp="ROOT">
diff --git a/ccm-ldn-portal/web/WEB-INF/web.xml-optional b/ccm-ldn-portal/web/WEB-INF/web.xml-portal.in
similarity index 69%
rename from ccm-ldn-portal/web/WEB-INF/web.xml-optional
rename to ccm-ldn-portal/web/WEB-INF/web.xml-portal.in
index 6c5dded5b..5593064b8 100755
--- a/ccm-ldn-portal/web/WEB-INF/web.xml-optional
+++ b/ccm-ldn-portal/web/WEB-INF/web.xml-portal.in
@@ -3,6 +3,8 @@
"http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
+
+
filescom.arsdigita.web.ApplicationFileServlet
@@ -11,10 +13,13 @@
/templates/ccm-ldn-portal
+
+
files/files/*
+
diff --git a/ccm-ldn-portal/web/packages/workspace/xsl/portlets.xsl b/ccm-ldn-portal/web/packages/workspace/xsl/portlets.xsl
index e6ff9e54f..f1303e12a 100755
--- a/ccm-ldn-portal/web/packages/workspace/xsl/portlets.xsl
+++ b/ccm-ldn-portal/web/packages/workspace/xsl/portlets.xsl
@@ -12,7 +12,12 @@
-
-
+
+
+
+
diff --git a/ccm-ldn-rss/application.xml b/ccm-ldn-rss/application.xml
index 2720f86f9..91de3d902 100755
--- a/ccm-ldn-rss/application.xml
+++ b/ccm-ldn-rss/application.xml
@@ -3,7 +3,8 @@
name="ccm-ldn-rss"
prettyName="RSS"
version="6.5.0"
- release="1">
+ release="1"
+ webapp="ROOT">
diff --git a/ccm-ldn-rss/doc/rss-standalone/README b/ccm-ldn-rss/doc/rss-standalone/README
new file mode 100644
index 000000000..27fe5d314
--- /dev/null
+++ b/ccm-ldn-rss/doc/rss-standalone/README
@@ -0,0 +1,21 @@
+Up to APLAWS version 1.0.4 rss had been installed into its own
+application context: [webapps]/ccm-ldn-rss.
+
+Now it is installed inside the main APLAWS application context along
+with all other applications.
+
+If shortcuts should be installed as its own web context again following
+modifications are necessary:
+1. remove webapp="xxx" from application.xml
+2. move the files in this dir to WEB-INF/
+3. change src/com/ad/london/rss/RSS.java
+ method getServletContext() as back to "/files"
+4. edit __ccm__/.../xsl/index.xsl according the comment
+
+
+Running it in its own webapplication context nevertheless is not suggestive.
+It needs several xsl files of the main application (esp. core) for basic
+operations, which hac been directly mapped from the main applications directory
+tree into its own directory tree. So no module separation is possible, no
+security context useable etc.
+
diff --git a/ccm-ldn-portal/web/WEB-INF/bebop-define.tld b/ccm-ldn-rss/doc/rss-standalone/bebop-define.tld
similarity index 100%
rename from ccm-ldn-portal/web/WEB-INF/bebop-define.tld
rename to ccm-ldn-rss/doc/rss-standalone/bebop-define.tld
diff --git a/ccm-ldn-portal/web/WEB-INF/bebop-show.tld b/ccm-ldn-rss/doc/rss-standalone/bebop-show.tld
similarity index 100%
rename from ccm-ldn-portal/web/WEB-INF/bebop-show.tld
rename to ccm-ldn-rss/doc/rss-standalone/bebop-show.tld
diff --git a/ccm-ldn-rss/web/WEB-INF/web.xml b/ccm-ldn-rss/doc/rss-standalone/web.xml
similarity index 100%
rename from ccm-ldn-rss/web/WEB-INF/web.xml
rename to ccm-ldn-rss/doc/rss-standalone/web.xml
diff --git a/ccm-ldn-rss/src/com/arsdigita/london/rss/Initializer.java b/ccm-ldn-rss/src/com/arsdigita/london/rss/Initializer.java
index 8f4302188..fac514e5e 100755
--- a/ccm-ldn-rss/src/com/arsdigita/london/rss/Initializer.java
+++ b/ccm-ldn-rss/src/com/arsdigita/london/rss/Initializer.java
@@ -47,6 +47,7 @@ public class Initializer extends CompoundInitializer {
("ccm-ldn-rss.pdl.mf",
new NameFilter(DbHelper.getDatabaseSuffix(database), "pdl"))));
+ // XXX rss.enterprise.init is empty. not needed here
add(new LegacyInitializer("com/arsdigita/london/rss/enterprise.init"));
}
}
diff --git a/ccm-ldn-rss/src/com/arsdigita/london/rss/RSS.java b/ccm-ldn-rss/src/com/arsdigita/london/rss/RSS.java
index 0d65ac9a7..26bcb481e 100755
--- a/ccm-ldn-rss/src/com/arsdigita/london/rss/RSS.java
+++ b/ccm-ldn-rss/src/com/arsdigita/london/rss/RSS.java
@@ -23,6 +23,10 @@ import com.arsdigita.persistence.OID;
import com.arsdigita.web.Application;
+/**
+ * Base class of the RSS application (module).
+ *
+ */
public class RSS extends Application {
public static final String BASE_DATA_OBJECT_TYPE
@@ -53,11 +57,45 @@ public class RSS extends Application {
super(oid);
}
- public String getContextPath() {
- return "/ccm-ldn-rss";
- }
+// /*
+// * Application specific method only required if installed in its own
+// * web application context
+// */
+// public String getContextPath() {
+// return "/ccm-ldn-rss";
+// }
+ /**
+ * Returns the path name of the location of the applications servlet/JSP.
+ *
+ * The methods overwrites the super class to provide an application specific
+ * location for servlets/JSP. This is necessary if you whish to install the
+ * module (application) along with others in one context. If you install the
+ * module into its own context (no longer recommended for versions newer
+ * than 1.0.4) you may use a standard location.
+ *
+ * Usually it is a symbolic name/path, which will be mapped in the web.xml
+ * to the real location in the file system. You will use the following
+ * kind of code:
+ *
+ * rss-files
+ * com.arsdigita.web.ApplicationFileServlet
+ *
+ * template-path
+ * /templates/ccm-ldn-rss
+ *
+ *
+ *
+ *
+ * rss-files
+ * /ccm-ldn-rss/files/*
+ *
+ *
+ * @return path name to the applications servlet/JSP
+ */
public String getServletPath() {
- return "/files";
+ // sufficient if execute in its own web context
+ // return "/files";
+ return "/ccm-ldn-rss/files";
}
}
diff --git a/ccm-ldn-rss/web/WEB-INF/web.xml-rss.in b/ccm-ldn-rss/web/WEB-INF/web.xml-rss.in
new file mode 100755
index 000000000..6174c341d
--- /dev/null
+++ b/ccm-ldn-rss/web/WEB-INF/web.xml-rss.in
@@ -0,0 +1,21 @@
+
+
+
+ rss-files
+ com.arsdigita.web.ApplicationFileServlet
+
+ template-path
+ /templates/ccm-ldn-rss
+
+
+ file-resolver
+ com.arsdigita.london.rss.RSSFileResolver
+
+
+
+
+
+ rss-files
+ /ccm-ldn-rss/files/*
+
+
diff --git a/ccm-ldn-rss/web/__ccm__/apps/rss/xsl/index.xsl b/ccm-ldn-rss/web/__ccm__/apps/rss/xsl/index.xsl
index 700d755e2..e0d205a02 100755
--- a/ccm-ldn-rss/web/__ccm__/apps/rss/xsl/index.xsl
+++ b/ccm-ldn-rss/web/__ccm__/apps/rss/xsl/index.xsl
@@ -2,7 +2,14 @@
-
-
+
+
+
+
+
diff --git a/ccm-ldn-search/application.xml b/ccm-ldn-search/application.xml
index 2aa78025e..f014ab86b 100755
--- a/ccm-ldn-search/application.xml
+++ b/ccm-ldn-search/application.xml
@@ -3,7 +3,8 @@
name="ccm-ldn-search"
prettyName="Search"
version="6.5.1"
- release="1">
+ release="1"
+ webapp="ROOT">
diff --git a/ccm-ldn-search/doc/search-standalone/README b/ccm-ldn-search/doc/search-standalone/README
new file mode 100644
index 000000000..01022d194
--- /dev/null
+++ b/ccm-ldn-search/doc/search-standalone/README
@@ -0,0 +1,22 @@
+Up to APLAWS version 1.0.4 search had been installed into its own
+application context: [webapps]/ccm-ldn-search.
+
+Now it is installed inside the main APLAWS application context along
+with all other applications.
+
+If search should be installed as its own web context again following
+modifications are necessary:
+1. remove webapp="xxx" from application.xml
+2. move the files in this dir to WEB-INF/
+3. change src/com/ad/london/search/Search.java
+ method getServletContext() as back to "/files"
+4. edit __ccm__/.../xsl/index.xsl according the comment
+5. edit in ccm-ldn-aplaws /web/__ccm__/themes/aplaws/search.xml
+ according to the comment
+
+Running it in its own webapplication context nevertheless is not suggestive.
+It needs several xsl files of the main application (esp. core) for basic
+operations, which hac been directly mapped from the main applications directory
+tree into its own directory tree. So no module separation is possible, no
+security context useable etc.
+
diff --git a/ccm-ldn-rss/web/WEB-INF/bebop-define.tld b/ccm-ldn-search/doc/search-standalone/bebop-define.tld
similarity index 100%
rename from ccm-ldn-rss/web/WEB-INF/bebop-define.tld
rename to ccm-ldn-search/doc/search-standalone/bebop-define.tld
diff --git a/ccm-ldn-rss/web/WEB-INF/bebop-show.tld b/ccm-ldn-search/doc/search-standalone/bebop-show.tld
similarity index 100%
rename from ccm-ldn-rss/web/WEB-INF/bebop-show.tld
rename to ccm-ldn-search/doc/search-standalone/bebop-show.tld
diff --git a/ccm-ldn-search/doc/search-standalone/server-config.wsdd b/ccm-ldn-search/doc/search-standalone/server-config.wsdd
new file mode 100755
index 000000000..6e51c4fa9
--- /dev/null
+++ b/ccm-ldn-search/doc/search-standalone/server-config.wsdd
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ccm-ldn-search/web/WEB-INF/web.xml b/ccm-ldn-search/doc/search-standalone/web.xml
similarity index 100%
rename from ccm-ldn-search/web/WEB-INF/web.xml
rename to ccm-ldn-search/doc/search-standalone/web.xml
diff --git a/ccm-ldn-search/src/com/arsdigita/london/search/Search.java b/ccm-ldn-search/src/com/arsdigita/london/search/Search.java
index b60044349..4bd0bd264 100755
--- a/ccm-ldn-search/src/com/arsdigita/london/search/Search.java
+++ b/ccm-ldn-search/src/com/arsdigita/london/search/Search.java
@@ -23,6 +23,10 @@ import com.arsdigita.persistence.OID;
import com.arsdigita.web.Application;
+/**
+ * Base class for the search application (module)
+ *
+ */
public class Search extends Application {
public static final String BASE_DATA_OBJECT_TYPE
@@ -46,11 +50,43 @@ public class Search extends Application {
super(oid);
}
- public String getContextPath() {
- return "/ccm-ldn-search";
- }
+// /*
+// * Application specific method only required if installed in its own
+// * web application context
+// */
+// public String getContextPath() {
+// return "/ccm-ldn-search";
+// }
+ /**
+ * Returns the path name of the location of the applications servlet/JSP.
+ *
+ * The method overwrites the super class to provide an application specific
+ * location for servlets/JSP. This is necessary if you whish to install the
+ * module (application) along with others in one context. If you install the
+ * module into its own context (no longer recommended for versions newer
+ * than 1.0.4) you may use a standard location.
+ *
+ * Usually it is a symbolic name/path, which will be mapped in the web.xml
+ * to the real location in the file system. Example:
+ *
+ * search-files
+ * com.arsdigita.web.ApplicationFileServlet
+ *
+ * template-path
+ * /templates/ccm-ldn-search
+ *
+ *
+ *
+ *
+ * search-files
+ * /ccm-ldn-search/files/*
+ *
+ *
+ * @return path name to the applications servlet/JSP
+ */
public String getServletPath() {
- return "/files";
+ //return "/files";
+ return "/ccm-ldn-search/files";
}
}
diff --git a/ccm-ldn-search/web/WEB-INF/server-config.wsdd b/ccm-ldn-search/web/WEB-INF/server-config.wsdd
index 6e51c4fa9..5cf365ccb 100755
--- a/ccm-ldn-search/web/WEB-INF/server-config.wsdd
+++ b/ccm-ldn-search/web/WEB-INF/server-config.wsdd
@@ -1,5 +1,6 @@
+
@@ -38,4 +39,4 @@
-
\ No newline at end of file
+
diff --git a/ccm-ldn-search/web/WEB-INF/web.xml-optional b/ccm-ldn-search/web/WEB-INF/web.xml-optional
deleted file mode 100755
index f0334aac2..000000000
--- a/ccm-ldn-search/web/WEB-INF/web.xml-optional
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
- files
- com.arsdigita.web.ApplicationFileServlet
-
- template-path
- /templates/ccm-ldn-search
-
-
-
-
- files
- /files/*
-
-
-
diff --git a/ccm-ldn-search/web/WEB-INF/web.xml-search.in b/ccm-ldn-search/web/WEB-INF/web.xml-search.in
new file mode 100755
index 000000000..c9bb32e3b
--- /dev/null
+++ b/ccm-ldn-search/web/WEB-INF/web.xml-search.in
@@ -0,0 +1,38 @@
+
+
+
+ worker
+ com.arsdigita.london.search.SearchWorkerServlet
+ 4
+
+
+
+ search-files
+ com.arsdigita.web.ApplicationFileServlet
+
+ template-path
+ /templates/ccm-ldn-search
+
+
+
+
+ AxisServlet
+ Apache-Axis Servlet
+
+ org.apache.axis.transport.http.AxisServlet
+
+
+
+
+
+
+ search-files
+ /ccm-ldn-search/files/*
+
+
+
+ AxisServlet
+ /services/*
+
+
+
diff --git a/ccm-ldn-search/web/__ccm__/apps/search/xsl/index.xsl b/ccm-ldn-search/web/__ccm__/apps/search/xsl/index.xsl
index c92475b01..e77edff3f 100755
--- a/ccm-ldn-search/web/__ccm__/apps/search/xsl/index.xsl
+++ b/ccm-ldn-search/web/__ccm__/apps/search/xsl/index.xsl
@@ -5,10 +5,20 @@
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
version="1.0">
+
+
+
+
+
+
+
+
diff --git a/ccm-ldn-shortcuts/application.xml b/ccm-ldn-shortcuts/application.xml
index be4af6d77..234bad70c 100755
--- a/ccm-ldn-shortcuts/application.xml
+++ b/ccm-ldn-shortcuts/application.xml
@@ -3,7 +3,8 @@
name="ccm-ldn-shortcuts"
prettyName="Shortcuts"
version="6.5.0"
- release="1">
+ release="1"
+ webapp="ROOT">
diff --git a/ccm-ldn-shortcuts/doc/shortcuts-standalone/README b/ccm-ldn-shortcuts/doc/shortcuts-standalone/README
new file mode 100644
index 000000000..c07fad383
--- /dev/null
+++ b/ccm-ldn-shortcuts/doc/shortcuts-standalone/README
@@ -0,0 +1,25 @@
+Up to APLAWS version 1.0.4 shortcuts had been installed into its own
+application context: [webapps]/ccm-ldn-shortcuts.
+
+Now it is installed inside the main APLAWS application context along
+with all other applications.
+
+If shortcuts should be installed as its own web context again following
+modifications are necessary:
+1. remove webapp="xxx" from application.xml
+2. move the files in this dir to WEB-INF/
+3. change src/com/ad/london/shortcuts/Shortcuts.java
+ method getServletContext() as back to "/files"
+4. edit __ccm__/.../xsl/index.xsl according the comment
+5. edit in ccm-ldn-aplaws /web/__ccm__/themes/aplaws/shortcuts.xml
+ according to the comment
+6. Add the filter expression in web.xml-shortcuts.in into the
+ main applications web.xml
+
+
+Running it in its own webapplication context nevertheless is not suggestive.
+It needs several xsl files of the main application (esp. core) for basic
+operations, which hac been directly mapped from the main applications directory
+tree into its own directory tree. So no module separation is possible, no
+security context useable etc.
+
diff --git a/ccm-ldn-search/web/WEB-INF/bebop-define.tld b/ccm-ldn-shortcuts/doc/shortcuts-standalone/bebop-define.tld
similarity index 100%
rename from ccm-ldn-search/web/WEB-INF/bebop-define.tld
rename to ccm-ldn-shortcuts/doc/shortcuts-standalone/bebop-define.tld
diff --git a/ccm-ldn-search/web/WEB-INF/bebop-show.tld b/ccm-ldn-shortcuts/doc/shortcuts-standalone/bebop-show.tld
similarity index 100%
rename from ccm-ldn-search/web/WEB-INF/bebop-show.tld
rename to ccm-ldn-shortcuts/doc/shortcuts-standalone/bebop-show.tld
diff --git a/ccm-ldn-shortcuts/web/WEB-INF/web.xml b/ccm-ldn-shortcuts/doc/shortcuts-standalone/web.xml
similarity index 100%
rename from ccm-ldn-shortcuts/web/WEB-INF/web.xml
rename to ccm-ldn-shortcuts/doc/shortcuts-standalone/web.xml
diff --git a/ccm-ldn-shortcuts/src/com/arsdigita/london/shortcuts/Shortcuts.java b/ccm-ldn-shortcuts/src/com/arsdigita/london/shortcuts/Shortcuts.java
index 36a45e387..e663df5af 100755
--- a/ccm-ldn-shortcuts/src/com/arsdigita/london/shortcuts/Shortcuts.java
+++ b/ccm-ldn-shortcuts/src/com/arsdigita/london/shortcuts/Shortcuts.java
@@ -23,6 +23,10 @@ import com.arsdigita.persistence.OID;
import com.arsdigita.web.Application;
+/**
+ * Base class of the shortcuts application.
+ *
+ */
public class Shortcuts extends Application {
public static final String BASE_DATA_OBJECT_TYPE
@@ -45,12 +49,45 @@ public class Shortcuts extends Application {
public Shortcuts(OID oid) {
super(oid);
}
-
- public String getContextPath() {
- return "/ccm-ldn-shortcuts";
- }
+// /*
+// * Application specific method only required if installed in its own
+// * web application context
+// */
+// public String getContextPath() {
+// return "/ccm-ldn-shortcuts";
+// }
+
+ /**
+ * Returns the path name of the location of the applications servlet/JSP.
+ *
+ * The methods overwrites the super class to provide an application specific
+ * location for servlets/JSP. This is necessary if you whish to install the
+ * module (application) along with others in one context. If you install the
+ * module into its own context (no longer recommended for versions newer
+ * than 1.0.4) you may use a standard location.
+ *
+ * Usually it is a symbolic name/path, which will be mapped in the web.xml
+ * to the real location in the file system. You will use the following
+ * kind of code:
+ *
+ * shortcuts-files
+ * com.arsdigita.web.ApplicationFileServlet
+ *
+ * template-path
+ * /templates/ccm-ldn-shortcuts
+ *
+ *
+ *
+ *
+ * shortcuts-files
+ * /ccm-ldn-shortcuts/files/*
+ *
+ *
+ * @return path name to the applications servlet/JSP
+ */
public String getServletPath() {
- return "/files";
+ // return "/files";
+ return "/ccm-ldn-shortcuts/files";
}
}
diff --git a/ccm-ldn-shortcuts/web/WEB-INF/web.xml-shortcuts.in b/ccm-ldn-shortcuts/web/WEB-INF/web.xml-shortcuts.in
new file mode 100644
index 000000000..b1aa87ccd
--- /dev/null
+++ b/ccm-ldn-shortcuts/web/WEB-INF/web.xml-shortcuts.in
@@ -0,0 +1,16 @@
+
+
+ shortcuts-files
+ com.arsdigita.web.ApplicationFileServlet
+
+ template-path
+ /templates/ccm-ldn-shortcuts
+
+
+
+
+
+ shortcuts-files
+ /ccm-ldn-shortcuts/files/*
+
+
diff --git a/ccm-ldn-shortcuts/web/__ccm__/apps/shortcuts/xsl/index.xsl b/ccm-ldn-shortcuts/web/__ccm__/apps/shortcuts/xsl/index.xsl
index 2135ce5d8..2afabfcbb 100755
--- a/ccm-ldn-shortcuts/web/__ccm__/apps/shortcuts/xsl/index.xsl
+++ b/ccm-ldn-shortcuts/web/__ccm__/apps/shortcuts/xsl/index.xsl
@@ -4,7 +4,14 @@
xmlns:shortcuts="http://www.arsdigita.com/shortcuts/1.0"
xmlns:bebop="http://www.arsdigita.com/bebop/1.0">
+
+
+
+
+
diff --git a/ccm-ldn-shortcuts/web/templates/ccm-ldn-shortcuts/index.jsp b/ccm-ldn-shortcuts/web/templates/ccm-ldn-shortcuts/index.jsp
index a3e522d9b..7fc4039fe 100755
--- a/ccm-ldn-shortcuts/web/templates/ccm-ldn-shortcuts/index.jsp
+++ b/ccm-ldn-shortcuts/web/templates/ccm-ldn-shortcuts/index.jsp
@@ -3,20 +3,23 @@
xmlns:show="/WEB-INF/bebop-show.tld"
version="1.2">
-
-
+
+
DispatcherHelper.cacheDisable(response);
+ title="Shortcuts Admin" cache="true">
-
+
- shortcutsPage.addRequestListener(new ApplicationAuthenticationListener());
+ shortcutsPage.addRequestListener(new ApplicationAuthenticationListener());
diff --git a/ccm-ldn-subsite/application.xml b/ccm-ldn-subsite/application.xml
index 0bb54b3d4..86db24db7 100755
--- a/ccm-ldn-subsite/application.xml
+++ b/ccm-ldn-subsite/application.xml
@@ -3,7 +3,8 @@
name="ccm-ldn-subsite"
prettyName="Subsite"
version="6.5.0"
- release="1">
+ release="1"
+ webapp="ROOT">
diff --git a/ccm-ldn-subsite/doc/subsite-standalone/README b/ccm-ldn-subsite/doc/subsite-standalone/README
new file mode 100644
index 000000000..437eee35a
--- /dev/null
+++ b/ccm-ldn-subsite/doc/subsite-standalone/README
@@ -0,0 +1,24 @@
+Up to APLAWS version 1.0.4 subsite had been installed into its own
+application context: [webapps]/ccm-ldn-subsite.
+
+Now it is installed inside the main APLAWS application context along
+with all other applications.
+
+If shortcuts should be installed as its own web context again following
+modifications are necessary:
+1. remove webapp="xxx" from application.xml
+2. move the files in this dir to WEB-INF/
+3. change src/com/ad/london/subsite/Subsite.java
+ method getServletContext() as back to "/files"
+4. edit __ccm__/.../xsl/index.xsl according the comment
+5. edit in ccm-ldn-aplaws /web/__ccm__/themes/aplaws/subsite.xml
+ according to the comment
+6. Add the filter expression in web.xml-subsite.in into the
+ main applications web.xml
+
+Running it in its own webapplication context nevertheless is not suggestive.
+It needs several xsl files of the main application (esp. core) for basic
+operations, which hac been directly mapped from the main applications directory
+tree into its own directory tree. So no module separation is possible, no
+security context useable etc.
+
diff --git a/ccm-ldn-shortcuts/web/WEB-INF/bebop-define.tld b/ccm-ldn-subsite/doc/subsite-standalone/bebop-define.tld
similarity index 100%
rename from ccm-ldn-shortcuts/web/WEB-INF/bebop-define.tld
rename to ccm-ldn-subsite/doc/subsite-standalone/bebop-define.tld
diff --git a/ccm-ldn-shortcuts/web/WEB-INF/bebop-show.tld b/ccm-ldn-subsite/doc/subsite-standalone/bebop-show.tld
similarity index 100%
rename from ccm-ldn-shortcuts/web/WEB-INF/bebop-show.tld
rename to ccm-ldn-subsite/doc/subsite-standalone/bebop-show.tld
diff --git a/ccm-ldn-subsite/web/WEB-INF/web.xml b/ccm-ldn-subsite/doc/subsite-standalone/web.xml
similarity index 100%
rename from ccm-ldn-subsite/web/WEB-INF/web.xml
rename to ccm-ldn-subsite/doc/subsite-standalone/web.xml
diff --git a/ccm-ldn-subsite/src/com/arsdigita/london/subsite/Subsite.java b/ccm-ldn-subsite/src/com/arsdigita/london/subsite/Subsite.java
index 35431fe6c..7c517a8c3 100755
--- a/ccm-ldn-subsite/src/com/arsdigita/london/subsite/Subsite.java
+++ b/ccm-ldn-subsite/src/com/arsdigita/london/subsite/Subsite.java
@@ -25,6 +25,10 @@ import com.arsdigita.domain.DataObjectNotFoundException;
import org.apache.log4j.Logger;
+/**
+ * Base class of the subsite application.
+ *
+ */
public class Subsite extends Application {
private static final Logger s_log = Logger.getLogger(Subsite.class);
@@ -69,12 +73,44 @@ public class Subsite extends Application {
super(oid);
}
- public String getContextPath() {
- return "/ccm-ldn-subsite";
- }
+// /*
+// * Application specific method only required if installed in its own
+// * web application context
+// */
+// public String getContextPath() {
+// return "/ccm-ldn-subsite";
+// }
+ /**
+ * Returns the path name of the location of the applications servlet/JSP.
+ *
+ * The method overwrites the super class to provide an application specific
+ * location for servlets/JSP. This is necessary if you whish to install the
+ * module (application) along with others in one context. If you install the
+ * module into its own context (no longer recommended for versions newer
+ * than 1.0.4) you may use a standard location.
+ *
+ * Usually it is a symbolic name/path, which will be mapped in the web.xml
+ * to the real location in the file system. Example:
+ *
+ * subsite-files
+ * com.arsdigita.web.ApplicationFileServlet
+ *
+ * template-path
+ * /templates/ccm-ldn-subsite
+ *
+ *
+ *
+ *
+ * subsite-files
+ * /ccm-ldn-subsite/files/*
+ *
+ *
+ * @return path name to the applications servlet/JSP
+ */
public String getServletPath() {
- return "/files";
+ // return "/files";
+ return "/ccm-ldn-subsite/files";
}
}
diff --git a/ccm-ldn-subsite/web/WEB-INF/web.xml-subsite.in b/ccm-ldn-subsite/web/WEB-INF/web.xml-subsite.in
new file mode 100755
index 000000000..14a65dcbf
--- /dev/null
+++ b/ccm-ldn-subsite/web/WEB-INF/web.xml-subsite.in
@@ -0,0 +1,19 @@
+
+
+
+ subsite-files
+ com.arsdigita.web.ApplicationFileServlet
+
+ template-path
+ /templates/ccm-ldn-subsite
+
+
+
+
+
+
+ subsite-files
+ /ccm-ldn-subsite/files/*
+
+
+
diff --git a/ccm-ldn-subsite/web/__ccm__/apps/subsite/xsl/index.xsl b/ccm-ldn-subsite/web/__ccm__/apps/subsite/xsl/index.xsl
index dbb5107cc..9cbd59a25 100755
--- a/ccm-ldn-subsite/web/__ccm__/apps/subsite/xsl/index.xsl
+++ b/ccm-ldn-subsite/web/__ccm__/apps/subsite/xsl/index.xsl
@@ -6,8 +6,15 @@
xmlns:subsite="http://ccm.redhat.com/london/subsite/1.0"
version="1.0">
+
+
+
+
+
diff --git a/ccm-ldn-terms/application.xml b/ccm-ldn-terms/application.xml
index 56ef1617d..916d5eb05 100755
--- a/ccm-ldn-terms/application.xml
+++ b/ccm-ldn-terms/application.xml
@@ -3,7 +3,8 @@
name="ccm-ldn-terms"
prettyName="Terms"
version="6.5.0"
- release="1">
+ release="1"
+ webapp="ROOT">
diff --git a/ccm-ldn-terms/doc/terms-standalone/README b/ccm-ldn-terms/doc/terms-standalone/README
new file mode 100644
index 000000000..666e7a958
--- /dev/null
+++ b/ccm-ldn-terms/doc/terms-standalone/README
@@ -0,0 +1,22 @@
+Up to APLAWS version 1.0.4 terms had been installed into its own
+application context: [webapps]/ccm-ldn-terms.
+
+Now it is installed inside the main APLAWS application context along
+with all other applications.
+
+If shortcuts should be installed as its own web context again following
+modifications are necessary:
+1. remove webapp="xxx" from application.xml
+2. move the files in this dir to WEB-INF/
+3. change src/com/ad/london/terms/Terms.java
+ method getServletContext() as back to "/files"
+4. edit __ccm__/.../xsl/index.xsl according the comment
+5. edit in ccm-ldn-aplaws /web/__ccm__/themes/aplaws/terms.xml
+ according to the comment
+
+Running it in its own webapplication context nevertheless is not suggestive.
+It needs several xsl files of the main application (esp. core) for basic
+operations, which hac been directly mapped from the main applications directory
+tree into its own directory tree. So no module separation is possible, no
+security context useable etc.
+
diff --git a/ccm-ldn-subsite/web/WEB-INF/bebop-define.tld b/ccm-ldn-terms/doc/terms-standalone/bebop-define.tld
similarity index 100%
rename from ccm-ldn-subsite/web/WEB-INF/bebop-define.tld
rename to ccm-ldn-terms/doc/terms-standalone/bebop-define.tld
diff --git a/ccm-ldn-subsite/web/WEB-INF/bebop-show.tld b/ccm-ldn-terms/doc/terms-standalone/bebop-show.tld
similarity index 100%
rename from ccm-ldn-subsite/web/WEB-INF/bebop-show.tld
rename to ccm-ldn-terms/doc/terms-standalone/bebop-show.tld
diff --git a/ccm-ldn-terms/web/WEB-INF/web.xml b/ccm-ldn-terms/doc/terms-standalone/web.xml
similarity index 100%
rename from ccm-ldn-terms/web/WEB-INF/web.xml
rename to ccm-ldn-terms/doc/terms-standalone/web.xml
diff --git a/ccm-ldn-terms/src/com/arsdigita/london/terms/Initializer.java b/ccm-ldn-terms/src/com/arsdigita/london/terms/Initializer.java
index 0818297c6..3e68ff271 100755
--- a/ccm-ldn-terms/src/com/arsdigita/london/terms/Initializer.java
+++ b/ccm-ldn-terms/src/com/arsdigita/london/terms/Initializer.java
@@ -44,6 +44,10 @@ import com.arsdigita.kernel.NoValidURLException;
import com.arsdigita.xml.XML;
+/**
+ *
+ *
+ */
public class Initializer extends CompoundInitializer {
public Initializer() {
diff --git a/ccm-ldn-terms/src/com/arsdigita/london/terms/Loader.java b/ccm-ldn-terms/src/com/arsdigita/london/terms/Loader.java
index 774cd96cc..bcde4bd11 100755
--- a/ccm-ldn-terms/src/com/arsdigita/london/terms/Loader.java
+++ b/ccm-ldn-terms/src/com/arsdigita/london/terms/Loader.java
@@ -17,7 +17,8 @@
*/
package com.arsdigita.london.terms;
-import com.arsdigita.london.terms.Terms;
+// unused import
+// import com.arsdigita.london.terms.Terms;
import com.arsdigita.kernel.Kernel;
import com.arsdigita.kernel.KernelExcursion;
diff --git a/ccm-ldn-terms/src/com/arsdigita/london/terms/TermCategoryListener.java b/ccm-ldn-terms/src/com/arsdigita/london/terms/TermCategoryListener.java
index 5198d79a1..b026956a5 100755
--- a/ccm-ldn-terms/src/com/arsdigita/london/terms/TermCategoryListener.java
+++ b/ccm-ldn-terms/src/com/arsdigita/london/terms/TermCategoryListener.java
@@ -47,7 +47,7 @@ public class TermCategoryListener implements CategoryListener {
public void onUnmap(Category cat, ACSObject obj) {}
/**
- * Create new term by hooking into setDefaultParent() category
+ * Create new term by hooking into setDefaultParent() category
* event. First, check whether the category is a model for an
* existing term. If yes, do nothing. Otherwise, find the
* terms domain in which the parent cat has been defined.
diff --git a/ccm-ldn-terms/src/com/arsdigita/london/terms/Terms.java b/ccm-ldn-terms/src/com/arsdigita/london/terms/Terms.java
index 593c91bf7..947b84f74 100755
--- a/ccm-ldn-terms/src/com/arsdigita/london/terms/Terms.java
+++ b/ccm-ldn-terms/src/com/arsdigita/london/terms/Terms.java
@@ -25,6 +25,10 @@ import com.arsdigita.web.Application;
import com.arsdigita.xml.Element;
+/**
+ * Base class of the ccm-ldn-terms application (module)
+ *
+ */
public class Terms extends Application {
public static final String XML_NS = "http://xmlns.redhat.com/london/terms/1.0";
@@ -55,12 +59,45 @@ public class Terms extends Application {
super(oid);
}
- public String getContextPath() {
- return "/ccm-ldn-terms";
- }
+// /*
+// * Application specific method only required if installed in its own
+// * web application context
+// */
+// public String getContextPath() {
+// return "/ccm-ldn-terms";
+// }
+ /**
+ * Returns the path name of the location of the applications servlet/JSP.
+ *
+ * The method overwrites the super class to provide an application specific
+ * location for servlets/JSP. This is necessary if you whish to install the
+ * module (application) along with others in one context. If you install the
+ * module into its own context (no longer recommended for versions newer
+ * than 1.0.4) you may use a standard location.
+ *
+ * Usually it is a symbolic name/path, which will be mapped in the web.xml
+ * to the real location in the file system. Example:
+ *
+ * terms-files
+ * com.arsdigita.web.ApplicationFileServlet
+ *
+ * template-path
+ * /templates/ccm-ldn-terms
+ *
+ *
+ *
+ *
+ * terms-files
+ * /ccm-ldn-terms/files/*
+ *
+ *
+ * @return path name to the applications servlet/JSP
+ */
public String getServletPath() {
- return "/files";
+ // sufficient if running in its own web application context ccm-ldn-terms
+ // return "/files";
+ return "/ccm-ldn-terms/files";
}
}
diff --git a/ccm-ldn-terms/src/com/arsdigita/london/terms/Util.java b/ccm-ldn-terms/src/com/arsdigita/london/terms/Util.java
index 3ab56541e..55c102217 100755
--- a/ccm-ldn-terms/src/com/arsdigita/london/terms/Util.java
+++ b/ccm-ldn-terms/src/com/arsdigita/london/terms/Util.java
@@ -6,9 +6,10 @@ package com.arsdigita.london.terms;
import org.apache.log4j.Logger;
-import com.arsdigita.cms.ContentBundle;
-import com.arsdigita.cms.ContentItem;
-import com.arsdigita.cms.ContentPage;
+// unused import
+// import com.arsdigita.cms.ContentBundle;
+// import com.arsdigita.cms.ContentItem;
+// import com.arsdigita.cms.ContentPage;
import com.arsdigita.domain.DomainCollection;
import com.arsdigita.persistence.DataQuery;
import com.arsdigita.persistence.SessionManager;
@@ -35,7 +36,9 @@ public class Util {
applicationDomain =
Domain.retrieve((String) domains.get("domainKey"));
} else {
- throw new UncheckedWrapperException("No Default Navigation domain found for application " + app == null ? null : app.getTitle());
+ throw new UncheckedWrapperException(
+ "No Default Navigation domain found for application " +
+ app == null ? null : app.getTitle());
}
domains.close();
diff --git a/ccm-ldn-terms/web/WEB-INF/web.xml-terms.in b/ccm-ldn-terms/web/WEB-INF/web.xml-terms.in
new file mode 100755
index 000000000..4034181f9
--- /dev/null
+++ b/ccm-ldn-terms/web/WEB-INF/web.xml-terms.in
@@ -0,0 +1,20 @@
+
+
+
+ terms-files
+ com.arsdigita.web.ApplicationFileServlet
+
+ template-path
+ /templates/ccm-ldn-terms
+
+
+
+
+
+
+ terms-files
+ /ccm-ldn-terms/files/*
+
+
+
+
diff --git a/ccm-ldn-terms/web/__ccm__/apps/terms/xsl/index.xsl b/ccm-ldn-terms/web/__ccm__/apps/terms/xsl/index.xsl
index 20f027ddf..5a48cefd6 100755
--- a/ccm-ldn-terms/web/__ccm__/apps/terms/xsl/index.xsl
+++ b/ccm-ldn-terms/web/__ccm__/apps/terms/xsl/index.xsl
@@ -4,8 +4,16 @@
xmlns:terms="http://xmlns.redhat.com/london/terms/1.0"
version="1.0">
+
+
+
+
+
+
diff --git a/ccm-ldn-theme/application.xml b/ccm-ldn-theme/application.xml
index 41772a253..b4bd17e44 100755
--- a/ccm-ldn-theme/application.xml
+++ b/ccm-ldn-theme/application.xml
@@ -3,7 +3,8 @@
name="ccm-ldn-theme"
prettyName="Theme"
version="6.5.0"
- release="1">
+ release="1"
+ webapp="ROOT">
diff --git a/ccm-ldn-theme/doc/theme-standalone/README b/ccm-ldn-theme/doc/theme-standalone/README
new file mode 100644
index 000000000..6aacc8c7b
--- /dev/null
+++ b/ccm-ldn-theme/doc/theme-standalone/README
@@ -0,0 +1,23 @@
+Up to APLAWS version 1.0.4 theme had been installed into its own
+application context: [webapps]/ccm-ldn-theme.
+
+Now it is installed inside the main APLAWS application context along
+with all other applications.
+
+If shortcuts should be installed as its own web context again following
+modifications are necessary:
+1. remove webapp="xxx" from application.xml
+2. move the files in this dir to WEB-INF/
+3. change src/com/ad/london/theme/ThemeApplication.java
+ method getServletContext() as back to "/files"
+4. edit __ccm__/.../xsl/index.xsl according the comment
+5. edit in ccm-ldn-aplaws /web/__ccm__/themes/aplaws/theme.xml
+ according to the comment
+
+
+Running it in its own webapplication context nevertheless is not suggestive.
+It needs several xsl files of the main application (esp. core) for basic
+operations, which hac been directly mapped from the main applications directory
+tree into its own directory tree. So no module separation is possible, no
+security context useable etc.
+
diff --git a/ccm-ldn-terms/web/WEB-INF/bebop-define.tld b/ccm-ldn-theme/doc/theme-standalone/bebop-define.tld
similarity index 100%
rename from ccm-ldn-terms/web/WEB-INF/bebop-define.tld
rename to ccm-ldn-theme/doc/theme-standalone/bebop-define.tld
diff --git a/ccm-ldn-terms/web/WEB-INF/bebop-show.tld b/ccm-ldn-theme/doc/theme-standalone/bebop-show.tld
similarity index 100%
rename from ccm-ldn-terms/web/WEB-INF/bebop-show.tld
rename to ccm-ldn-theme/doc/theme-standalone/bebop-show.tld
diff --git a/ccm-ldn-theme/web/WEB-INF/web.xml b/ccm-ldn-theme/doc/theme-standalone/web.xml
similarity index 100%
rename from ccm-ldn-theme/web/WEB-INF/web.xml
rename to ccm-ldn-theme/doc/theme-standalone/web.xml
diff --git a/ccm-ldn-theme/src/com/arsdigita/london/theme/Theme.java b/ccm-ldn-theme/src/com/arsdigita/london/theme/Theme.java
index d6d8923ef..36c4bf023 100755
--- a/ccm-ldn-theme/src/com/arsdigita/london/theme/Theme.java
+++ b/ccm-ldn-theme/src/com/arsdigita/london/theme/Theme.java
@@ -33,8 +33,8 @@ import java.util.Date;
/**
- * this represents a Theme within the system. Specifically, it represents
- * a grouping of files that can be used to style a given subsite.
+ * Represents a Theme within the system. Specifically, it represents
+ * a grouping of files that can be used to style a given subsite.
*
* @author Randy Graebner %lt;randyg@alum.mit.edu>
*/
diff --git a/ccm-ldn-theme/src/com/arsdigita/london/theme/ThemeApplication.java b/ccm-ldn-theme/src/com/arsdigita/london/theme/ThemeApplication.java
index e1352e725..d03b39a55 100755
--- a/ccm-ldn-theme/src/com/arsdigita/london/theme/ThemeApplication.java
+++ b/ccm-ldn-theme/src/com/arsdigita/london/theme/ThemeApplication.java
@@ -25,6 +25,10 @@ import com.arsdigita.domain.DataObjectNotFoundException;
import org.apache.log4j.Logger;
+/**
+ * Base class of the ccm-ldn-theme application (module)
+ *
+ */
public class ThemeApplication extends Application {
public static final String DEFAULT_THEME = "defaultTheme";
@@ -54,14 +58,6 @@ public class ThemeApplication extends Application {
super(oid);
}
- public String getContextPath() {
- return "/ccm-ldn-theme";
- }
-
- public String getServletPath() {
- return "/theme-files";
- }
-
public Theme getDefaultTheme() {
DataObject dObj = (DataObject) get( DEFAULT_THEME );
if( null == dObj ) return null;
@@ -72,4 +68,45 @@ public class ThemeApplication extends Application {
public void setDefaultTheme( Theme theme ) {
set( DEFAULT_THEME, theme );
}
+
+// /*
+// * Application specific method only required if installed in its own
+// * web application context
+// */
+// public String getContextPath() {
+// return "/ccm-ldn-theme";
+// }
+
+ /**
+ * Returns the path name of the location of the applications servlet/JSP.
+ *
+ * The method overwrites the super class to provide an application specific
+ * location for servlets/JSP. This is necessary if you whish to install the
+ * module (application) along with others in one context. If you install the
+ * module into its own context (no longer recommended for versions newer
+ * than 1.0.4) you may use a standard location.
+ *
+ * Usually it is a symbolic name/path, which will be mapped in the web.xml
+ * to the real location in the file system. Example:
+ *
+ * theme-files
+ * com.arsdigita.web.ApplicationFileServlet
+ *
+ * template-path
+ * /templates/ccm-ldn-theme
+ *
+ *
+ *
+ *
+ * theme-files
+ * /ccm-ldn-theme/files/*
+ *
+ *
+ * @return path name to the applications servlet/JSP
+ */
+ public String getServletPath() {
+ // sufficient if executed in its own web application context (ccm-ldn-theme)
+ return "/theme-files";
+ // return "/ccm-ldn-theme/files";
+ }
}
diff --git a/ccm-ldn-theme/web/WEB-INF/web.xml-theme.in b/ccm-ldn-theme/web/WEB-INF/web.xml-theme.in
new file mode 100755
index 000000000..ab5bd62de
--- /dev/null
+++ b/ccm-ldn-theme/web/WEB-INF/web.xml-theme.in
@@ -0,0 +1,46 @@
+
+
+
+ theme-files
+ com.arsdigita.web.ApplicationFileServlet
+
+ template-path
+ /templates/ccm-ldn-theme
+
+
+
+
+ ThemeDownload
+ com.arsdigita.london.theme.dispatcher.ThemeDownloadServlet
+
+
+
+ ThemePreviewServlet
+ Servlet to allow admins to preview look/feel
+
+ com.arsdigita.london.theme.dispatcher.InternalThemePrefixerServlet
+
+
+ prefix
+ /theme
+
+
+
+
+
+
+ theme-files
+ /theme-files/*
+
+
+
+ ThemeDownload
+ /theme-files/download/*
+
+
+
+ ThemePreviewServlet
+ /theme/*
+
+
+
diff --git a/ccm-ldn-theme/web/__ccm__/apps/theme/xsl/index.xsl b/ccm-ldn-theme/web/__ccm__/apps/theme/xsl/index.xsl
index 5130a81a5..a97699f5e 100755
--- a/ccm-ldn-theme/web/__ccm__/apps/theme/xsl/index.xsl
+++ b/ccm-ldn-theme/web/__ccm__/apps/theme/xsl/index.xsl
@@ -5,8 +5,15 @@
xmlns:theme="http://ccm.redhat.com/london/theme/1.0"
version="1.0">
+
+
+
+
+
diff --git a/ccm-simplesurvey/application.xml b/ccm-simplesurvey/application.xml
index c1d0d7bc8..0d7094ae1 100755
--- a/ccm-simplesurvey/application.xml
+++ b/ccm-simplesurvey/application.xml
@@ -3,7 +3,8 @@
name="ccm-simplesurvey"
prettyName="Core"
version="6.5.0"
- release="1">
+ release="1"
+ webapp="ROOT">
diff --git a/ccm-simplesurvey/doc/simplesurvey-standalone/README b/ccm-simplesurvey/doc/simplesurvey-standalone/README
new file mode 100644
index 000000000..4f29c42b1
--- /dev/null
+++ b/ccm-simplesurvey/doc/simplesurvey-standalone/README
@@ -0,0 +1,21 @@
+Up to APLAWS version 1.0.4 simplesurvey had been installed into its own
+application context: [webapps]/ccm-simplesurvey.
+
+Now it is installed inside the main APLAWS application context along
+with all other applications.
+
+If shortcuts should be installed as its own web context again following
+modifications are necessary:
+1. remove webapp="xxx" from application.xml
+2. move the files in this dir to WEB-INF/
+3. change src/com/ad/london/simplesurvey/SimpleSurvey.java
+ method getServletContext() as back to "/files"
+4. edit __ccm__/.../xsl/index.xsl according the comment
+
+
+Running it in its own webapplication context nevertheless is not suggestive.
+It needs several xsl files of the main application (esp. core) for basic
+operations, which hac been directly mapped from the main applications directory
+tree into its own directory tree. So no module separation is possible, no
+security context useable etc.
+
diff --git a/ccm-ldn-theme/web/WEB-INF/bebop-define.tld b/ccm-simplesurvey/doc/simplesurvey-standalone/bebop-define.tld
similarity index 100%
rename from ccm-ldn-theme/web/WEB-INF/bebop-define.tld
rename to ccm-simplesurvey/doc/simplesurvey-standalone/bebop-define.tld
diff --git a/ccm-ldn-theme/web/WEB-INF/bebop-show.tld b/ccm-simplesurvey/doc/simplesurvey-standalone/bebop-show.tld
similarity index 100%
rename from ccm-ldn-theme/web/WEB-INF/bebop-show.tld
rename to ccm-simplesurvey/doc/simplesurvey-standalone/bebop-show.tld
diff --git a/ccm-simplesurvey/web/WEB-INF/web.xml b/ccm-simplesurvey/doc/simplesurvey-standalone/web.xml
similarity index 100%
rename from ccm-simplesurvey/web/WEB-INF/web.xml
rename to ccm-simplesurvey/doc/simplesurvey-standalone/web.xml
diff --git a/ccm-simplesurvey/src/com/arsdigita/simplesurvey/SimpleSurvey.java b/ccm-simplesurvey/src/com/arsdigita/simplesurvey/SimpleSurvey.java
index 454766d84..ff8aa9d07 100755
--- a/ccm-simplesurvey/src/com/arsdigita/simplesurvey/SimpleSurvey.java
+++ b/ccm-simplesurvey/src/com/arsdigita/simplesurvey/SimpleSurvey.java
@@ -43,12 +43,45 @@ public class SimpleSurvey extends Application {
super(oid);
}
- public String getContextPath() {
- return "/ccm-simplesurvey";
- }
+// /*
+// * Application specific method only required if installed in its own
+// * web application context
+// */
+// public String getContextPath() {
+// return "/ccm-simplesurvey";
+// }
+ /**
+ * Returns the path name of the location of the applications servlet/JSP.
+ *
+ * The method overwrites the super class to provide an application specific
+ * location for servlets/JSP. This is necessary if you whish to install the
+ * module (application) along with others in one context. If you install the
+ * module into its own context (no longer recommended for versions newer
+ * than 1.0.4) you may use a standard location.
+ *
+ * Usually it is a symbolic name/path, which will be mapped in the web.xml
+ * to the real location in the file system. Example:
+ *
+ * simplesurvey-files
+ * com.arsdigita.web.ApplicationFileServlet
+ *
+ * template-path
+ * /templates/ccm-simplesurvey
+ *
+ *
+ *
+ *
+ * simplesurvey-files
+ * /ccm-simplesurvey/files/*
+ *
+ *
+ * @return path name to the applications servlet/JSP
+ */
public String getServletPath() {
- return "/files";
+ // sufficient if installed into its own web appl. context (ccm-simplesurvey)
+ // return "/files";
+ return "/simplesurvey/files";
}
}
diff --git a/ccm-simplesurvey/web/WEB-INF/bebop-define.tld b/ccm-simplesurvey/web/WEB-INF/bebop-define.tld
deleted file mode 100755
index d34f653f2..000000000
--- a/ccm-simplesurvey/web/WEB-INF/bebop-define.tld
+++ /dev/null
@@ -1,395 +0,0 @@
-
-
-
-
-
- 1.0
- 1.1
- bebop-define
- http://www.arsdigita.com/bebop-define/tld/1.0
-
- this is a tag library for defining Bebop pages via JSP.
-
-
- page
- com.arsdigita.bebop.jsp.DefinePage
- com.arsdigita.bebop.jsp.DefinePageExtraInfo
- JSP
-
- title
- false
- true
-
-
- name
- true
- true
-
-
- application
- false
- true
-
-
- master
- false
- true
-
-
- pageClass
- false
- true
-
-
- cache
- false
- true
-
-
-
-
- component
- com.arsdigita.bebop.jsp.DefineComponentImpl
- com.arsdigita.bebop.jsp.DefineComponentExtraInfo
- JSP
-
- name
- false
- true
-
-
- classname
- true
- true
-
-
-
-
- form
- com.arsdigita.bebop.jsp.DefineForm
- com.arsdigita.bebop.jsp.DefineFormExtraInfo
- JSP
-
- name
- true
- true
-
-
- encType
- false
- true
-
-
- method
- false
- true
-
-
- action
- false
- true
-
-
- onSubmit
- false
- true
-
-
- onReset
- false
- true
-
-
-
-
- link
- com.arsdigita.bebop.jsp.DefineLink
- JSP
-
- url
- true
- true
-
-
- name
- false
- true
-
-
-
-
- image
- com.arsdigita.bebop.jsp.DefineImage
- JSP
-
- src
- true
- true
-
-
- alt
- false
- true
-
-
- width
- false
- true
-
-
- height
- false
- true
-
-
- border
- false
- true
-
-
- name
- false
- true
-
-
-
-
- tabbedPane
- com.arsdigita.bebop.jsp.DefineTabbedPane
- JSP
-
- name
- true
- true
-
-
-
-
- tab
- com.arsdigita.bebop.jsp.DefineTab
- JSP
-
- name
- true
- true
-
-
- label
- true
- true
-
-
-
-
- text
- com.arsdigita.bebop.jsp.DefineText
- com.arsdigita.bebop.jsp.DefineWidgetExtraInfo
- JSP
-
- name
- true
- true
-
-
- type
- false
- true
-
-
- size
- false
- true
-
-
- maxlength
- false
- true
-
-
-
-
- password
- com.arsdigita.bebop.jsp.DefinePassword
- com.arsdigita.bebop.jsp.DefineWidgetExtraInfo
- JSP
-
- name
- true
- true
-
-
- size
- false
- true
-
-
- maxlength
- false
- true
-
-
-
-
- textArea
- com.arsdigita.bebop.jsp.DefineTextArea
- com.arsdigita.bebop.jsp.DefineWidgetExtraInfo
- JSP
-
- name
- true
- true
-
-
- type
- false
- true
-
-
- rows
- false
- true
-
-
- cols
- false
- true
-
-
- wrap
- false
- true
-
-
-
-
- submit
- com.arsdigita.bebop.jsp.DefineSubmit
- JSP
-
- name
- true
- true
-
-
- label
- false
- true
-
-
- bundle
- false
- true
-
-
-
-
- option
- com.arsdigita.bebop.jsp.DefineOption
- JSP
-
- name
- true
- true
-
-
- value
- false
- true
-
-
- selected
- false
- true
-
-
- bundle
- false
- true
-
-
-
-
- radioGroup
- com.arsdigita.bebop.jsp.DefineRadioGroup
- JSP
-
- name
- true
- true
-
-
-
-
- checkboxGroup
- com.arsdigita.bebop.jsp.DefineCheckboxGroup
- JSP
-
- name
- true
- true
-
-
- vertical
- false
- true
-
-
-
-
- select
- com.arsdigita.bebop.jsp.DefineSelect
- JSP
-
- name
- true
- true
-
-
- onChange
- false
- true
-
-
-
-
- multipleSelect
- com.arsdigita.bebop.jsp.DefineMultipleSelect
- JSP
-
- name
- true
- true
-
-
-
-
- slave
- com.arsdigita.bebop.jsp.DefineSlave
- empty
-
-
-
- list
- com.arsdigita.bebop.jsp.DefineList
- com.arsdigita.bebop.jsp.DefineListExtraInfo
- JSP
-
- name
- true
- true
-
-
-
-
- table
- com.arsdigita.bebop.jsp.DefineTable
- com.arsdigita.bebop.jsp.DefineTableExtraInfo
- JSP
-
- name
- true
- true
-
-
-
-
diff --git a/ccm-simplesurvey/web/WEB-INF/bebop-show.tld b/ccm-simplesurvey/web/WEB-INF/bebop-show.tld
deleted file mode 100755
index ab98aba89..000000000
--- a/ccm-simplesurvey/web/WEB-INF/bebop-show.tld
+++ /dev/null
@@ -1,117 +0,0 @@
-
-
-
-
-
- 1.0
- 1.1
- bebop-define
- http://www.arsdigita.com/bebop-define/tld/1.0
-
- this is a tag library for showing components from Bebop pages
- inside of a JSP.
-
-
- page
- com.arsdigita.bebop.jsp.ShowPage
- com.arsdigita.bebop.jsp.ShowPageExtraInfo
- JSP
-
- pageClass
- false
- true
-
-
- master
- false
- true
-
-
-
-
- all
- com.arsdigita.bebop.jsp.ShowAll
- JSP
-
-
-
- component
- com.arsdigita.bebop.jsp.ShowComponent
- JSP
-
- name
- true
- true
-
-
-
-
- form
- com.arsdigita.bebop.jsp.ShowForm
- JSP
-
- name
- true
- true
-
-
-
-
- list
- com.arsdigita.bebop.jsp.ShowList
- JSP
-
- name
- true
- true
-
-
-
-
-
- listItem
- com.arsdigita.bebop.jsp.ShowListItem
- empty
-
-
-
- table
- com.arsdigita.bebop.jsp.ShowTable
- JSP
-
- name
- true
- true
-
-
-
-
- thead
- com.arsdigita.bebop.jsp.ShowTableHeader
- JSP
-
-
-
- tbody
- com.arsdigita.bebop.jsp.ShowTableBody
- JSP
-
-
-
- row
- com.arsdigita.bebop.jsp.ShowTableRow
- JSP
-
-
-
- col
- com.arsdigita.bebop.jsp.ShowListItem
- empty
-
-
-
- slave
- com.arsdigita.bebop.jsp.ShowSlave
- JSP
-
-
diff --git a/ccm-simplesurvey/web/WEB-INF/web.xml-simplesurvey.in b/ccm-simplesurvey/web/WEB-INF/web.xml-simplesurvey.in
new file mode 100755
index 000000000..a3d5c59f5
--- /dev/null
+++ b/ccm-simplesurvey/web/WEB-INF/web.xml-simplesurvey.in
@@ -0,0 +1,17 @@
+
+
+
+ simplesurvey-files
+ com.arsdigita.web.ApplicationFileServlet
+
+ template-path
+ /templates/ccm-simplesurvey
+
+
+
+
+
+ simplesurvey-files
+ /ccm-simplesurvey/files/*
+
+
diff --git a/ccm-simplesurvey/web/packages/simplesurvey/xsl/simplesurvey.xsl b/ccm-simplesurvey/web/packages/simplesurvey/xsl/simplesurvey.xsl
index b225838eb..2fdc2038b 100755
--- a/ccm-simplesurvey/web/packages/simplesurvey/xsl/simplesurvey.xsl
+++ b/ccm-simplesurvey/web/packages/simplesurvey/xsl/simplesurvey.xsl
@@ -4,13 +4,19 @@
xmlns:simplesurvey="http://www.arsdigita.com/simplesurvey/1.0"
xmlns:bebop="http://www.arsdigita.com/bebop/1.0">
-
+
-
-
+
+
-
-
-
+
+
+
+
+
+
diff --git a/ccm-simplesurvey/web/packages/simplesurvey/xsl/survey-response-data.xsl b/ccm-simplesurvey/web/packages/simplesurvey/xsl/survey-response-data.xsl
index b841f0da9..2cb80b719 100755
--- a/ccm-simplesurvey/web/packages/simplesurvey/xsl/survey-response-data.xsl
+++ b/ccm-simplesurvey/web/packages/simplesurvey/xsl/survey-response-data.xsl
@@ -4,13 +4,13 @@
xmlns:simplesurvey="http://www.arsdigita.com/simplesurvey/1.0"
xmlns:bebop="http://www.arsdigita.com/bebop/1.0">
-
-
-
+
+
+
-
-
-
+
+
+