title: Common init-parameters in web.xml for multiple java servlets?
body: <p>My current understanding is that init-params in the web.xml must be put in the body of a servlet variable, like this:</p>
  
  <pre><code>&lt;servlet&gt;
      &lt;servlet-name&gt;MyServlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;MyServlet&lt;/servlet-class&gt;
  
      &lt;init-param&gt;
          &lt;description&gt;debug&lt;/description&gt; 
          &lt;param-name&gt;debug&lt;/param-name&gt; 
          &lt;param-value&gt;true&lt;/param-value&gt; 
      &lt;/init-param&gt;   
  &lt;/servlet&gt;
  </code></pre>
  
  <p>Which works fine, but if I bring the init-param outside the servlet body, then it no longer recognizes it when I call getInitParam()</p>
  
  <p>Just wondering if it was possible, since I have 3 servlets that I would like to share common init parameters</p>