Author: kkolinko Date: Thu Nov 20 03:34:57 2014 New Revision: 1640658 URL: http://svn.apache.org/r1640658 Log: Correct documentation for CGI servlet: The default value for cgiPathPrefix is null. The "WEB-INF/cgi" value is the recommended one and used in conf/web.xml example.
Modified: tomcat/trunk/conf/web.xml tomcat/trunk/java/org/apache/catalina/servlets/CGIServlet.java tomcat/trunk/webapps/docs/cgi-howto.xml Modified: tomcat/trunk/conf/web.xml URL: http://svn.apache.org/viewvc/tomcat/trunk/conf/web.xml?rev=1640658&r1=1640657&r2=1640658&view=diff ============================================================================== --- tomcat/trunk/conf/web.xml (original) +++ tomcat/trunk/conf/web.xml Thu Nov 20 03:34:57 2014 @@ -317,7 +317,8 @@ <!-- --> <!-- cgiPathPrefix The CGI search path will start at --> <!-- webAppRootDir + File.separator + this prefix. --> - <!-- [WEB-INF/cgi] --> + <!-- If not set, then webAppRootDir is used. --> + <!-- Recommended value: WEB-INF/cgi --> <!-- --> <!-- debug Debugging detail level for messages logged --> <!-- by this servlet. [0] --> Modified: tomcat/trunk/java/org/apache/catalina/servlets/CGIServlet.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/servlets/CGIServlet.java?rev=1640658&r1=1640657&r2=1640658&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/catalina/servlets/CGIServlet.java (original) +++ tomcat/trunk/java/org/apache/catalina/servlets/CGIServlet.java Thu Nov 20 03:34:57 2014 @@ -123,7 +123,7 @@ import org.apache.catalina.util.IOTools; * or an instance where the specification cited differs from Best * Community Practice (BCP). * Such instances should be well-documented here. Please email the - * <a href="mailto:dev@tomcat.apache.org">Tomcat group [dev@tomcat.apache.org]</a> + * <a href="http://tomcat.apache.org/lists.html">Tomcat group</a> * with amendments. * * </p> Modified: tomcat/trunk/webapps/docs/cgi-howto.xml URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/cgi-howto.xml?rev=1640658&r1=1640657&r2=1640658&view=diff ============================================================================== --- tomcat/trunk/webapps/docs/cgi-howto.xml (original) +++ tomcat/trunk/webapps/docs/cgi-howto.xml Thu Nov 20 03:34:57 2014 @@ -93,9 +93,11 @@ configure the behaviour of the CGI servl <ul> <li><strong>cgiPathPrefix</strong> - The CGI search path will start at the web application root directory + File.separator + this prefix. -The default cgiPathPrefix is <code>WEB-INF/cgi</code></li> +By default there is no value, which results in the web application root +directory being used as the search path. The recommended value is +<code>WEB-INF/cgi</code></li> <li><strong>debug</strong> - Debugging detail level for messages logged -by this servlet. Default 0.</li> +by this servlet. Default is <code>0</code>.</li> <li><strong>executable</strong> - The of the executable to be used to run the script. You may explicitly set this parameter to be an empty string if your script is itself executable (e.g. an exe file). Default is @@ -105,13 +107,14 @@ and so on - additional arguments for the CGI script name. By default there are no additional arguments.</li> <li><strong>parameterEncoding</strong> - Name of the parameter encoding to be used with the CGI servlet. Default is -<code>System.getProperty("file.encoding","UTF-8")</code>.</li> +<code>System.getProperty("file.encoding","UTF-8")</code>. That is the system +default encoding, or UTF-8 if that system property is not available.</li> <li><strong>passShellEnvironment</strong> - Should the shell environment -variables (if any) be passed to the CGI script? Default is +variables from Tomcat process (if any) be passed to the CGI script? Default is <code>false</code>.</li> <li><strong>stderrTimeout</strong> - The time (in milliseconds) to wait for the reading of stderr to complete before terminating the CGI process. Default -is 2000.</li> +is <code>2000</code>.</li> </ul> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org