Jim Reynolds wrote:
I have a scenario where our site allows users to enter foreign
languages in a database. So at anytime, the value of a langage value
can change. So I am unable to use the message resources as they are
static between server bumps.

Anyway, it would be great if I could actually create some type of
mechanism to create the properties from the database, and if they
change, just update the files. But I am not clear as to how to go
about this.

Any ideas? I just do not want to go to the database for each language value..

You're going to have to go to the database at *some* point. The best thing to do is just forget about properties files in this case and use a resource bundle implementation that loads its content from the database. Then configure Struts with a custom ResourceBundleFactory (in struts-config.xml) which will create instances of your ResourceBundle implementation as needed.

Thanks for any ideas.

PS, how do I search this list?

Google? Gmane? Or use the various archives listed here:

http://struts.apache.org/mail.html#Archives

L.


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

Reply via email to