struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dimitri Valdin" <>
Subject Re: [VOTE] Release Struts 1.0.1-rc1 as Struts 1.0.1
Date Thu, 03 Jan 2002 13:01:01 GMT

> [x] +0  I am in favor of the release, but am unable to help support it

Finally we can get rid of our struts patch, the sole purpose of which was
to work with commons :-)

I am not sure, that it is a real place to propose this extention.
We had to introduce a small patch to ActionServlet in order to configure
aplication dynamically for strutstest - has smth to do with multiple struts configs.
Even if I can set another config file for a strutstest
with setConfigFile("/sub-app/WEB-INF/struts-config.xml"); I cannot force
struts to load a corresponding web.xml file without specifying a classpath
to it. The patch would be to use system property "web.config" to decide
which configuration file should be loaded. Please correct me if I am
too far from reality.

--- D:/Programme/jakarta-struts/src/share/org/apache/struts/action/ Wed
Jan  2 10:02:40 2002
+++ d:/projekte/struts/src/org/apache/struts/action/      Thu Jan  3 12:43:23
@@ -1848,8 +1848,13 @@
             log("Scanning web.xml for controller servlet mapping");
         InputStream input= null;
         try {
+            String sWebConfig = System.getProperty("web.config");
+            if (sWebConfig == null) {
+                sWebConfig = "/WEB-INF/web.xml";
+            }
             input =
-                getServletContext().getResourceAsStream("/WEB-INF/web.xml");
+                getServletContext().getResourceAsStream(sWebConfig);
         } catch (Throwable e) {
             log(internal.getMessage("configWebXml"), e);

Dmitri Valdin


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie
nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren
Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie
die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended
recipient (or have received this e-mail in error) please notify the sender immediately and
destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material
in this e-mail is strictly forbidden.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message