title: How to retrieve context parameters through EL in Java EE 6?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6523193/jsf-2-how-can-i-get-a-context-param-value-from-web-xml-using-jsf-el">JSF 2 - How can I get a context-param value from web.xml using JSF EL?</a>  </p>
  </blockquote>
  
  
  
  <p>I was used to retrieve context parameters using EL in this manner</p>
  
  <pre><code>${applicationScope.configs.parameterName}
  </code></pre>
  
  <p>And it works perfectly.</p>
  
  <p>Now, I'm working a new project that uses Tomcat 7 and Java EE 6 (servlet and jsp spec) and the example above does not work. I created the web.xml just to set some parameters. Inside a servlet, I just use</p>
  
  <pre><code>getServletContext().getInitParameter( "parameterName" );
  </code></pre>
  
  <p>And it works fine, but when I try to use the first example in my JSPs, it does not work, nothing happens, like the "configs" map does not exists. I already searched for some solution but I didn't find anything. I tried several things too like:</p>
  
  <pre><code>${applicationScope.initParameter.parameterName}
  ${applicationScope.initParameters.parameterName}
  </code></pre>
  
  <p>And it does not work too. I would like to know how to retrieve context parameters in my JSPs using Tomcat 7 (Java EE 6).</p>