Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 85775 invoked from network); 29 Jul 2005 20:22:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Jul 2005 20:22:27 -0000 Received: (qmail 24132 invoked by uid 500); 29 Jul 2005 20:22:08 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 24117 invoked by uid 500); 29 Jul 2005 20:22:08 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 24104 invoked by uid 99); 29 Jul 2005 20:22:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jul 2005 13:22:07 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [63.251.155.133] (HELO ms05.mailstreet2003.net) (63.251.155.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jul 2005 13:22:00 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: setting application variables Date: Fri, 29 Jul 2005 16:26:18 -0400 Message-ID: <32DFA92B5FBB244C9071D1F7D5129BEA3120BF@ms05.mailstreet2003.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: setting application variables Thread-Index: AcWUehY9EvaAzIoSS5eF+RQBy51NXwAACsDgAABdGZA= From: "Josh Howe" To: "Tomcat Users List" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I'll look into ContextListeners. Thanks!=20 -----Original Message----- From: Mufaddal Khumri [mailto:MKhumri@allegromedical.com]=20 Sent: Friday, July 29, 2005 4:16 PM To: Tomcat Users List Subject: RE: setting application variables You could have a ContextListener for your web application. You could then read the properties from your property file and put them in the application context so that all your JSP pages have access to them. In order to implement a ContextListener you need to write a class that implements the ServletContextListener interface. You will have to make an entry in your web.xml about the same. Hope this helps, Mufaddal. -----Original Message----- From: Josh Howe [mailto:josh@sinu.com]=20 Sent: Friday, July 29, 2005 1:14 PM To: tomcat-user@jakarta.apache.org Subject: setting application variables =20 Hi, =20 I'm very new to Tomcat and JSP. Can anybody tell me how I can initialize some application variables from a file so that they are available to all of the asp pages in my application as soon as it starts? Thanks!=20 ------------------------------------------------------------------------ ------------------ This email and any files transmitted with it are confidential=20 and intended solely for the use of the individual or entity=20 to whom they are addressed. If you have received this=20 email in error please notify the system manager. Please note that any views or opinions presented in this email=20 are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the=20 presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. Consult your physician prior to the use of any medical supplies or product. ------------------------------------------------------------------------ ------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org