Folks,

We have a standard ApplicationResources.properties file. If customers want
customised labels I want to be able to include a 2nd
ApplicationResources.properties file that contains only those labels that
have been customised. The 2nd label definition should override the 1st (i.e.
standard) definition.
If no customisations have been specified the 2nd file would be empty.


E.g. 

ApplicationResources.properties

global.greeting=Hello World
global.message=how are you?


CustomApplicationResources.properties

global.greeting=Hi There!



In the above case using global.greeting would result in "Hi There!" and
global.message "how are you?"


Looking at the Struts documentation it seems that if > 1  properties files
are used one must give them a key in the struts-config file. This key must
then be used by the bean:message tags. This wont work in this context 'cos
the bean:message tags will not be aware of which file the definition
resides.


Is it possible to overlay properties definitions in a second file like this
without changing the bean:message tags?


TIA -Adam




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to