Since they are in application scope, you can make them part of a Singleton pattern, i.e., make them static values of a class, loaded by the contextInitialized() method. They could be properties of the listener itself, or to be more properly factored, you can place them in their own class.
Tim -----Original Message----- From: Rahul [mailto:[EMAIL PROTECTED] Sent: Sunday, March 05, 2006 2:46 AM To: users@tomcat.apache.org Subject: JSP on Tomcat: application scope variable Hi, I have a simple web application which has two JSP pages and some class files containing implementation/logic. These are invoked from the JSP files. I want to store some values e.g. properties from a properties files in the application scope (or alike) so that in my class files I can read these values. I am considering reading these properties in an implementation of ServletContextListener. Where should I store these values and how I can access them in my class files? Thanks, Rahul. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- 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]