Problem accessing Context Variable
Hi,
I have the following code in web.xml for initialising context parameter.
<context-param>
<param-name>myContextParamName</param-name>
<param-value>myContextParamValue</param-value>
</context-param>
I am trying to access it in JSTL using
${initParam["myContextParamName"]}
and it does not work.
I am not sure if the changes to web.xml are being recognized. I tried to use a JNDI name that was set up on the server as a resource in web.xml and even that is not recognized by the code. Restarting the server did not help.
Any ideas please ?
Thanks
vmrao
|