title: JSF 2 - How can I get a context-param value from web.xml using JSF EL?
body: <p>I would like to declare some constant values used by my JSF 2 webapp inside the web.xml file like so:</p>
  
  <pre><code>&lt;web-app&gt;
      &lt;context-param&gt;
          &lt;param-name&gt;myconstantkey&lt;/param-name&gt;
          &lt;param-value&gt;some string value&lt;/param-value&gt;
      &lt;/context-param&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>Getting these values from inside a backing bean is easy enough:</p>
  
  <pre><code>FacesContext ctx = FacesContext.getCurrentInstance();
  String myConstantValue =
      ctx.getExternalContext().getInitParameter("myconstantkey");
  </code></pre>
  
  <p>How do I achieve the same thing from inside a Facelets page using JSF EL to get the value?</p>