struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "McCormack, Chris" <>
Subject RE: application configuration
Date Thu, 08 Jul 2004 12:39:28 GMT
I have coded something similar to this but rather than pop the properties object in to the
context I attached it to ThreadLocal.

Chris McCormack

-----Original Message-----
From: Andrew Hill []
Sent: 08 July 2004 12:26
To: Struts Users Mailing List
Subject: RE: application configuration

I tend to put such things in XML files rather than properties files

When the app starts up I have a plugin read the files and create
configuration objects (using Digester), and put these objects into the
servlet context (application scope) where my code can get at them easily.

-----Original Message-----
From: news []On Behalf Of j h
Sent: Thursday, 8 July 2004 19:23
Subject: application configuration

If there are specific properties that need to be configured on deployment,
where should these be put? you could put these in the
file and read these in from an Action class every time they are needed:
MessageResources mr = getResources(request);
String config = mr.getMessage("configuration.detail");

This seems inefficient. Is there a way to read these into some global

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message