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
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
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
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
4 matches
Mail list logo