changes for tomcat 4.1.x also compatible with 4.0.x, mir/servlet/Mir becomes /mir...
authormh <mh>
Fri, 15 Nov 2002 22:04:11 +0000 (22:04 +0000)
committermh <mh>
Fri, 15 Nov 2002 22:04:11 +0000 (22:04 +0000)
etc/web.xml
lib/servlet-2.2.jar [deleted file]
source/config.properties-dist
source/mir/misc/HTMLTemplateProcessor.java
source/mir/servlet/AbstractServlet.java
source/mircoders/producer/Producer.java

index 001d9a0..7169c05 100755 (executable)
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 
 <!DOCTYPE web-app
-    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
-    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
+  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+  "http://java.sun.com/dtd/web-app_2_3.dtd">
 
 <web-app>
     <servlet>
       </mime-type>
     </mime-mapping>
 
+    <resource-ref>
 
+      <description>
+        Resource reference to a factory for java.sql.Connection instances that
+        may be used for talking to a particular database that is configured in
+        the server.xml file.
+      </description>
 
-    <taglib>
-        <taglib-uri>
-          http://java.apache.org/tomcat/examples-taglib
-        </taglib-uri>
-        <taglib-location>
-           /WEB-INF/jsp/example-taglib.tld
-        </taglib-location>
-    </taglib>
+      <res-ref-name>
+        jdbc/Mir
+      </res-ref-name>
+
+      <res-type>
+        javax.sql.DataSource
+      </res-type>
+
+      <res-auth>
+        Container
+      </res-auth>
+
+    </resource-ref>
 
     <security-constraint>
       <web-resource-collection>
diff --git a/lib/servlet-2.2.jar b/lib/servlet-2.2.jar
deleted file mode 100755 (executable)
index 18ca666..0000000
Binary files a/lib/servlet-2.2.jar and /dev/null differ
index dcb56bf..bc6ad12 100755 (executable)
@@ -84,7 +84,7 @@ ServletModule.FileEdit.ExtFilter=inc
 #
 
 # the url of the openposting-servlet
-Producer.OpenAction=http://indy.code-fu.de/Mir/servlet/OpenMir
+Producer.OpenAction=http://indy.code-fu.de/Mir/OpenMir
 
 
 # use this property if the pages are not produced under the docRoot
index 63f088e..f517a3c 100755 (executable)
@@ -87,7 +87,7 @@ public final class HTMLTemplateProcessor {
          //actionRoot = docRoot + "/servlet/" + MirConfig.getProp("ServletName");
     //actionRoot = docRoot + "/servlet/NadirAktuell";
 
-    actionRoot = docRoot + "/servlet/Mir";
+    actionRoot = docRoot + "/Mir";
 
     defEncoding = MirConfig.getProp("Mir.DefaultEncoding");
     openAction = MirConfig.getProp("Producer.OpenAction");
index 70ddc61..e0ee075 100755 (executable)
@@ -63,17 +63,17 @@ public abstract class AbstractServlet extends HttpServlet {
             throws UnavailableException {
 
         //String RealPath = super.getServletContext().getRealPath("/");
-        String Uri = req.getRequestURI();
-        String Name = super.getServletName();
-        String RootUri = StringUtil.replace(Uri, "/servlet/" + Name, "");
+        String uri = req.getRequestURI();
+        String name = super.getServletName();
+        String rootUri = StringUtil.replace(uri, "/"+name, "");
 
         // init config
         //MirConfig.initConfig(RealPath, RootUri, Name, getInitParameter("Config"));
-        MirConfig.initConfig(super.getServletContext(), RootUri, Name,
+        MirConfig.initConfig(super.getServletContext(), rootUri, name,
                               getInitParameter("Config"));
 
-        theLog = Logfile.getInstance(MirConfig.getPropWithHome(Name + ".Logfile"));
-        theLog.printInfo(Name + " started.");
+        theLog = Logfile.getInstance(MirConfig.getPropWithHome(name + ".Logfile"));
+        theLog.printInfo(name + " started.");
         theLog.printInfo("Path is: " + MirConfig.getProp("Home"));
         theLog.printInfo("Root URI is: " + MirConfig.getProp("RootUri"));
         theLog.printInfo("StandardLanguage is: " + MirConfig.getProp("StandardLanguage"));
index c2cb977..c62d9ca 100755 (executable)
@@ -51,7 +51,7 @@ abstract public class Producer {
   protected static String   producerOpenAction = MirConfig.getProp("Producer.OpenAction");;
 
   /** @todo same as in HTMLTemplateProcessor, this should be dynamically set */
-  protected static String   actionRoot = MirConfig.getProp("RootUri") + "/servlet/Mir";
+  protected static String   actionRoot = MirConfig.getProp("RootUri") + "/Mir";
 
   protected static Logfile theLog = Logfile.getInstance(MirConfig.getProp("Home") + "/" + MirConfig.getProp("Producer.Logfile"));
   protected static ModuleTopics         topicsModule;