Re: Setting application properties

2007-07-20 Thread Richard Sayre
You could read the global properties from a file or DB when the application first loads into an object of your choice (A Map for Key,Value) . Then put this object in session. On 7/19/07, SimonK <[EMAIL PROTECTED]> wrote: Thanx for you reply. The 'problem' with this solution is that I then hav

Re: Setting application properties

2007-07-20 Thread bartlebooth
You could put a context parameter into your web.xml tmpDir /tmp/test If your action is ServletContextAware (you implement the setter public void setServletContext(ServletContext servletContext)), then you can access this parameter using servletContext.get

Re: Setting application properties

2007-07-19 Thread SimonK
Thanx for you reply. The 'problem' with this solution is that I then have to explicitly access the file each time I want a property. I was hoping that There was a place that I could load such parameters then simply access it. The things I have experimented with (and which have failed) are: atte

Re: Setting application properties

2007-07-18 Thread Nuwan Chandrasoma
Hi, Add a property file to your classpath, read it from your java code. this is what i got from google :) http://www.exampledepot.com/egs/java.util/Props.html http://www.javaworld.com/javaworld/javaqa/2003-08/01-qa-0808-property.html?page=1 Thanks, Nuwan - Original Message - From