title: using ServletContext and ServletConfig in scriptlets and EL
body: <p>I tried to run the following lines.</p>
  
  <pre><code>&lt;%=application.getInitParameter("tagline")%&gt;               
  &lt;br /&gt;
  &lt;%=config.getInitParameter("admincontact")%&gt;
  
  ${initParam.tagline}
  &lt;br /&gt;
  ${pageContext.servletConfig.initParameter("admincontact")}
  </code></pre>
  
  <p>And my web.xml is</p>
  
  <pre><code>&lt;servlet&gt;
  &lt;jsp-file&gt;/index.jsp&lt;/jsp-file&gt;
  &lt;init-param&gt;
      &lt;param-name&gt;admincontact&lt;/param-name&gt;
      &lt;param-value&gt;8939302763&lt;/param-value&gt;  
  &lt;/init-param&gt;
  &lt;/servlet&gt;
      &lt;context-param&gt;
  &lt;param-name&gt;tagline&lt;/param-name&gt;
  &lt;param-value&gt;Each one Plant one&lt;/param-value&gt;
  </code></pre>
  
  <p>I get a exception at 
  <code>${pageContext.servletConfig.initParameter("admincontact")}</code>
  and null value for
  <code>&lt;%=config.getInitParameter("admincontact")%&gt;</code>.</p>
  
  <p>Regards,
  John</p>