setting application variables

2005-07-29 Thread Josh Howe
Hi, 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!

RE: setting application variables

2005-07-29 Thread Mufaddal Khumri
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:[EMAIL PROTECTED] Sent: Friday, July 29, 2005 1:14 PM To: tomcat-user@jakarta.apache.org Subject: setting application variables

RE: setting application variables

2005-07-29 Thread Josh Howe
I'll look into ContextListeners. Thanks! -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] 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

Re: setting application variables

2005-07-29 Thread Frank W. Zammetti
PROTECTED] 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

Re: setting application variables

2005-07-29 Thread Ben Souther
Look up context init-params and servlet init-params. I have some demo apps that demonstrate the use of these: http://simple.souther.us On Fri, 2005-07-29 at 16:14, Josh Howe wrote: Hi, I'm very new to Tomcat and JSP. Can anybody tell me how I can initialize some application