Author: kkolinko Date: Tue Aug 2 09:22:35 2011 New Revision: 1153076 URL: http://svn.apache.org/viewvc?rev=1153076&view=rev Log: CTR: Docs Remove path attribute from examples of <Context> where this attribute is not needed.
Modified: tomcat/tc6.0.x/trunk/webapps/docs/config/context.xml tomcat/tc6.0.x/trunk/webapps/docs/jndi-datasource-examples-howto.xml tomcat/tc6.0.x/trunk/webapps/docs/manager-howto.xml Modified: tomcat/tc6.0.x/trunk/webapps/docs/config/context.xml URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/config/context.xml?rev=1153076&r1=1153075&r2=1153076&view=diff ============================================================================== --- tomcat/tc6.0.x/trunk/webapps/docs/config/context.xml (original) +++ tomcat/tc6.0.x/trunk/webapps/docs/config/context.xml Tue Aug 2 09:22:35 2011 @@ -538,7 +538,7 @@ by nesting a <a href="valve.html">Valve</a> element like this:</p> <source> -<Context path="/examples" ...> +<Context> ... <Valve className="org.apache.catalina.valves.AccessLogValve" prefix="localhost_access_log." suffix=".txt" @@ -592,7 +592,7 @@ <code><Parameter></code> elements inside this element. For example, you can create an initialization parameter like this:</p> <source> -<Context ...> +<Context> ... <Parameter name="companyName" value="My Company, Incorporated" override="false"/> @@ -651,7 +651,7 @@ <code><Environment></code> entries inside this element. For example, you can create an environment entry like this:</p> <source> -<Context ...> +<Context> ... <Environment name="maxExemptions" value="10" type="java.lang.Integer" override="false"/> @@ -728,7 +728,7 @@ lifecycle events. Configuration of such a listener looks like this:</p> <source> -<Context path="/examples" ...> +<Context> ... <Listener className="com.mycompany.mypackage.MyListener" ... > ... @@ -756,7 +756,7 @@ Example filter declarations:</p> <source> -<Context path="/examples" ...> +<Context> ... <Valve className="org.apache.catalina.valves.RemoteHostValve" allow=".*\.mycompany\.com|www\.yourcompany\.com"/> @@ -785,7 +785,7 @@ <p>For example, you can create a resource definition like this:</p> <source> -<Context ...> +<Context> ... <Resource name="jdbc/EmployeeDB" auth="Container" type="javax.sql.DataSource" @@ -860,7 +860,7 @@ <p>For example, you can create a resource link like this:</p> <source> -<Context ...> +<Context> ... <ResourceLink name="linkToGlobalResource" global="simpleValue" @@ -921,7 +921,7 @@ </attributes> <p>Shared Data Source Example</p> <source> -<GlobalNamingResources ...> +<GlobalNamingResources> ... <Resource name="sharedDataSource" global="sharedDataSource" Modified: tomcat/tc6.0.x/trunk/webapps/docs/jndi-datasource-examples-howto.xml URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/jndi-datasource-examples-howto.xml?rev=1153076&r1=1153075&r2=1153076&view=diff ============================================================================== --- tomcat/tc6.0.x/trunk/webapps/docs/jndi-datasource-examples-howto.xml (original) +++ tomcat/tc6.0.x/trunk/webapps/docs/jndi-datasource-examples-howto.xml Tue Aug 2 09:22:35 2011 @@ -206,8 +206,7 @@ resource to your <a href="config/context <p>For example: <source> -<Context path="/DBTest" docBase="DBTest" - reloadable="true" crossContext="true"> +<Context> <!-- maxActive: Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle @@ -411,8 +410,7 @@ The Context element should look somethin </p> <source> -<Context path="/someApp" docBase="someApp" - crossContext="true" reloadable="true"> +<Context> <Resource name="jdbc/postgres" auth="Container" type="javax.sql.DataSource" driverClassName="org.postgresql.Driver" Modified: tomcat/tc6.0.x/trunk/webapps/docs/manager-howto.xml URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/manager-howto.xml?rev=1153076&r1=1153075&r2=1153076&view=diff ============================================================================== --- tomcat/tc6.0.x/trunk/webapps/docs/manager-howto.xml (original) +++ tomcat/tc6.0.x/trunk/webapps/docs/manager-howto.xml Tue Aug 2 09:22:35 2011 @@ -174,8 +174,7 @@ could be restricted by the remote IP add <code>RemoteAddrValve</code> or <code>RemoteHostValve</code>. Here is an example of restricting access to the localhost by IP address:</p> <pre> -<Context path="/manager" privileged="true" - docBase="/usr/local/tomcat6/server/manager"> +<Context privileged="true"> <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\.0\.0\.1"/> </Context> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org