amitesh kumar wrote:
I NEED A SOLUTION ASAP.
First off,
Ease Up. We're all volunteers who answer questions in our spare time.
Second, the web site I maintain has similar functionality:
See here and then
here and then
here. We didn't use resource bundles. We have an XML-based approach. We have a configuration file like this (this snippet shows the configuration for the logo on the left-hand side of the page, note the "default" value with no qualifier):
When the application is loaded, these XML files are loaded into a map (by key) of maps (by qualifier). We then have several classes to access these values in code and on
JSP pages. Specify the key and qualifier and get whatever value is in the XML. It's very flexible in practice.
I've much simpler configurations with property files, where each property had an additional value indicating the environment (
see here). nothing as convoluted as the above.
I honestly don't know if it is possible to do what you want with plain message bundles. It's always a good idea to
test the feasibility of a design before committing to it.