Re: external properties

2004-12-17 Thread Wendy Smoak
From: "liooil " <[EMAIL PROTECTED]> > What would be the best pratice to get properties from an external file? > (I mean this file is not part of my war). > I'd like it to be read on servelt startup and properties to be be > available in servlet context ... > I though about a struts plugIn , but it

Re: external properties

2004-12-17 Thread Frank W. Zammetti
Is the path to the config file something you can hard-code? If so, how about simply a class with a static initializer block to read the config file, then expose the values through a static getConfig() method returning a static HashMap? That's about as simple, light-weight and environment-agno

Re: external properties

2004-12-17 Thread fzlists
Is the path to the config file something you can hard-code? If so, how about simply a class with a static initializer block to read the config file, then expose the values through a static getConfig() method returning a static HashMap? That's about as simple, light-weight and environment-agnos

RE: external properties

2004-12-17 Thread Jim Barrows
> -Original Message- > From: liooil [mailto:[EMAIL PROTECTED] > Sent: Friday, December 17, 2004 10:09 AM > To: [EMAIL PROTECTED] > Subject: external properties > > > Hello world, > > What would be the best pratice to get properties from an > external file? > (I mean this file is not p