Laurie Harper
Thu, 04 Sep 2008 13:06:37 -0700
laredotornado wrote:
Hi, I'm using Struts 1. We want to load our message resources properties, currently defined in our struts-config.xml file: <message-resources parameter="MessageResources" /> from a database. Now of course, they are in a file called "MessageResources.properties". What is the proper way to do this?
You need to add a factory= attribute and point it to a custom implementation of MessageResourcesFactory [1] that can load resource bundles from your database. You can probably find example implementations in the list archives if you need some further pointers.
L.[1] http://struts.apache.org/1.3.9/apidocs/org/apache/struts/util/MessageResourcesFactory.html
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]