Clarify web application version ordering rules when both versioned and non-versioned...
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 17 Jan 2011 08:27:00 +0000 (08:27 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 17 Jan 2011 08:27:00 +0000 (08:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1059811 13f79535-47bb-0310-9956-ffa450edef68

webapps/docs/config/context.xml

index 5f25a77..3a75b72 100644 (file)
 
 <section name="Introduction">
 
-    <blockquote><em>
-    <p>The description below uses the variable name $CATALINA_BASE to refer the
+    <blockquote><p><em>
+    The description below uses the variable name $CATALINA_BASE to refer the
     base directory against which most relative paths are resolved. If you have
     not configured Tomcat for multiple instances by setting a CATALINA_BASE
     directory, then $CATALINA_BASE will be set to the value of $CATALINA_HOME,
-    the directory into which you have installed Tomcat.</p>
-    </em></blockquote>
+    the directory into which you have installed Tomcat.
+    </em></p></blockquote>
 
   <p>The <strong>Context</strong> element represents a <em>web
   application</em>, which is run within a particular virtual host.
@@ -68,8 +68,8 @@
   web application for this virtual host, and is used to process all
   requests that do not match any other Context's context path.</p>
 
-  <p>You may deploy multiple versions of a web application with the same context
-  path at the same time. The rules used to match requests to a context version
+  <p><b>You may deploy multiple versions of a web application with the same context
+  path at the same time.</b> The rules used to match requests to a context version
   are as follows:
   <ul>
   <li>If no session information is present in the request, use the latest
@@ -93,7 +93,7 @@
         contextPath with the leading '/' removed and any remaining '/'
         characters in the path replaced with '#'.</li>
   </ul>
-  When a version is specified, ##version is added to the contextName and base
+  When a version is specified, <code>##version</code> is added to the contextName and base
   name. To help clarify these rules, some examples are given in the following
   table.</p>
   
   
   <p>The version component is treated as a <code>String</code> both for
   performance reasons and to allow flexibility in versioning schemes. String
-  comparissions are used to determine version order. Therefore
+  comparisons are used to determine version order. If version is not specified,
+  it is treated as the empty string.
+  Therefore,
+  <code>foo.war</code> will be treated as an earlier version than
+  <code>foo##11.war</code> and
   <code>foo##11.war</code> will be treated as an earlier version than
   <code>foo##2.war</code>. If using a purely numerical versioning scheme it is
   recommended that zero padding is used so that <code>foo##002.war</code> is