Hi, If you put stuff in the servlet context, the class must have access to the servlet context ;) So the class must be a servlet (or JSP, or filter, or listener, etc.) itself, or the class can be passed the servlet context from one of these servlets/JSPs/filters/listeners.
Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Atreya Basu [mailto:[EMAIL PROTECTED] >Sent: Friday, December 05, 2003 9:37 AM >To: Tomcat Users List >Subject: [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: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]