Howdy, Are you serious? ;) You might want to buy a servlets book or go through a tutorial, this is a very basic concept.
You don't define a servlet context, the server creates one for you. You define context parameters in your deployment descriptor, the web.xml file. Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Duncan [mailto:[EMAIL PROTECTED] >Sent: Wednesday, December 03, 2003 11:50 AM >To: Tomcat Users List >Subject: Re: Global Variables > >Thanks for the replies, but what do I define servletContext as? > >Many thanks >Duncan > >Jardin Xavier wrote: > >> use >> >> <context-param> >> <param-name>param</param-name> >> <param-value>value</param-value> >> </context-param> >> >> in the web.xml >> >> and String param = servletContext.getInitParameter("param"); >> >> in the JSP. >> >> ----- Original Message ----- >> From: "Duncan" <[EMAIL PROTECTED]> >> To: "Tomcat User List" <[EMAIL PROTECTED]> >> Sent: Wednesday, December 03, 2003 5:08 PM >> Subject: Global Variables >> >> > Is there a way to set global variables in the web.xml which can be read >> > by any JSP page? >> > >> > Cheers, >> > -Duncan >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] > > >--------------------------------------------------------------------- >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]