You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hr...@apache.org on 2005/04/21 07:55:19 UTC

svn commit: r164006 - /struts/core/trunk/doc/userGuide/configuration.xml

Author: hrabago
Date: Wed Apr 20 22:55:17 2005
New Revision: 164006

URL: http://svn.apache.org/viewcvs?rev=164006&view=rev
Log:
Fix the inconsistencies reported by Jefferson Hunt in bugs 34531 and 34532.
Fix typo.
Use the term "prefix" when referring to modules to match the term used in the code (ModuleUtils, SwitchAction, etc).

Modified:
    struts/core/trunk/doc/userGuide/configuration.xml

Modified: struts/core/trunk/doc/userGuide/configuration.xml
URL: http://svn.apache.org/viewcvs/struts/core/trunk/doc/userGuide/configuration.xml?rev=164006&r1=164005&r2=164006&view=diff
==============================================================================
--- struts/core/trunk/doc/userGuide/configuration.xml (original)
+++ struts/core/trunk/doc/userGuide/configuration.xml Wed Apr 20 22:55:17 2005
@@ -383,8 +383,8 @@
     specify multiple 'config' initialization parameters, with a slight twist.
     You'll still use 'config' to tell the ActionServlet about your "default"
     module, however, for each additional module, you will
-    list an initialization parameter named "config/<em>module</em>", where <em>module</em> is
-    the name of your module (this gets used when determining which URIs fall
+    list an initialization parameter named "config<em>/module</em>", where <em>/module</em> is
+    the prefix for your module (this gets used when determining which URIs fall
     under a given module, so choose something meaningful!).
     For example:
     </p>
@@ -404,8 +404,9 @@
 
     <p>
     Here we have two modules.
-    One happens to be the "default" module, which has no "/module" in its
-    name, and the other one named "module1" (config/module1).
+    One happens to be the "default" module, identified by the param-name of
+    "config", and the other will be using the module prefix "/module1" based 
+    on the param-name it was given ("config/module1").
     The controller is configured to find the respective configuration files
     under <code>/WEB-INF/conf/</code> (which is the recommended place to put all configuration files).
     Pretty simple!
@@ -415,7 +416,7 @@
     (The <code>struts-default.xml</code> would be equivalent to what most folks call
     <code>struts-config.xml</code>.
     I just like the symmetry of having all my Struts module configuration files being
-    named <code>struts-<em>modulename</em>.xml</code>)
+    named <code>struts-<em>module</em>.xml</code>)
     </p>
 
     <p>
@@ -520,11 +521,11 @@
     </code></pre>
 
     <p>
-    Using the module parameter with a hyperlink tag is even simplier:
+    Using the module parameter with a hyperlink tag is even simpler:
     </p>
 
     <pre><code><![CDATA[
-    <html:link module="moduleB" path="/index.do"/>
+    <html:link module="/moduleB" path="/index.do"/>
     ]]></code></pre>
 
     <p>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org