title: Defining Tomcat servlet context parameters
body: <p>Scenario:</p>
  
  <p>foo.war file contains a default value of init parameter fooParam=1.</p>
  
  <p>This is defined in <code>foo.war!WEB_INF/web.xml</code> which contains:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  
  &lt;!DOCTYPE web-app 
      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" 
      "http://java.sun.com/dtd/web-app_2_3.dtd"&gt;
  
  &lt;web-app&gt;
  
      &lt;context-param&gt;
        &lt;param-name&gt;fooParam&lt;/param-name&gt;
        &lt;param-value&gt;1&lt;/param-value&gt;
        &lt;description&gt;
          my parameter "fooParam"
        &lt;/description&gt;
      &lt;/context-param&gt;
  
      ...
  </code></pre>
  
  <p>OK, now I want to be able to override it in a config file in the Tomcat {$CATALINA_HOME}/conf/ directory. Where/how can I do this???</p>