<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Using global variable in web.xml</title><link>https://answers.axonivy.com/questions/2601/using-global-variable-in-web-xml</link><description>&lt;p&gt;I want to create a context param by using global variable like this. But it doesn't work. Is there any way to do it?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  &amp;lt; context-param&amp;gt;
     &amp;lt; param-name&amp;gt;primefaces.PRIVATE_CAPTCHA_KEY&amp;lt;/param-name&amp;gt;
     &amp;lt; param-value&amp;gt;#{ivy.var.get('private_captcha_key')}&amp;lt;/param-value&amp;gt;
     &amp;lt; /context-param&amp;gt;
&lt;/code&gt;&lt;/pre&gt;</description><atom:link href="https://answers.axonivy.com/questions/2601/using-global-variable-in-web-xml" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 01 May 2017 02:56:02 -0400</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/2601/using-global-variable-in-web-xml/2602</link><description>&lt;p&gt;There is no general scripting support available within the context.xml. It is designed for static values.&lt;/p&gt;
&lt;p&gt;Looking at the source-code of primefaces there is no other way to configure the keys for the captcha than setting in the context.xml.
&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/primefacePrivateKeyConstantUsage.png"&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Mon, 01 May 2017 02:56:02 -0400</pubDate><guid>https://answers.axonivy.com/questions/2601/using-global-variable-in-web-xml/2602</guid></item></channel></rss>