<?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>
#
# 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
//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");
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"));
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;