In my database, I have country codes. CA for Canada, US for the States, DE for 
Germany, etc.

I'd like to have "friendly" names associated with each, and I'd like to put them in 
the application.properties so that they can be localized for different languages.

So I put some entries into the resources file like so:
countryname.CA=Canada
countryname.DE=Germany
countryname.US=United States

And in a request-scope arraylist bean, called countrycodes, I have the list: CA, DE, 
US...

I'd like to be able to populate a selection list that displays friendly names, and 
returns the countrycodes as values.

Now I'm trying to figure out how to construct the struts-bean message key to access 
the long names.

I've tried several approaches and have only succeeded in crashing the servlet compiler.

Have I painted myself into a corner with this approach, or is it doable?

Jefficus

Reply via email to