You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Atreya Basu <at...@greenfieldresearch.ca> on 2003/12/05 15:37:17 UTC
[OT] Global Variable Question
Hi,
This is off topic, but maybe someone can help me regardless.
I want to store some global variables in my web.xml file in the
<context-params> element.
I have a class (extends Object) that I want having access to those
parameters. Is there any way for that class to access the parameters in
the <context-param> element?
--
_____________________________________
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: [OT] Global Variable Question
Posted by Tim Funk <fu...@joedog.org>.
No, use JNDI instead.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html
-Tim
Atreya Basu wrote:
> Hi,
>
> This is off topic, but maybe someone can help me regardless.
>
> I want to store some global variables in my web.xml file in the
> <context-params> element.
>
> I have a class (extends Object) that I want having access to those
> parameters. Is there any way for that class to access the parameters in
> the <context-param> element?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org