Jason Long, We are also in need of same issue to be solved in struts. i.e pulling messages from database instead of property file that is configured in xml file.
At present i am pulling labels,javascript alert messages from property file. But now my customer wants to handle the same from property file. It would be great help for me,if they could share sample code that they have already implemented in struts application. Regards RaghuVeer -----Original Message----- From: Jason Long [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 16, 2005 5:59 AM To: 'Struts Users Mailing List' Subject: RE: Load message resources from DB??? Could someone provide a code sample and struts config snippit? My project is way over deadline and this is not crucial, but would be very nice. I only have 1 locale so this should be easy. If I have to make any serious effort on this it will have to wait for phase II. Thank you very much for your reply Daniel. Thank you for your time, Jason Long CEO and Chief Software Engineer BS Physics, MS Chemical Engineering http://www.supernovasoftware.com -----Original Message----- From: Daniel Lipofsky [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 3:35 PM To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: RE: Load message resources from DB??? Yes, just extend the PropertyMessageResources and overide the loadLocale() method. You should extend the factory too and specify the new factory in struts-config.xml. Add a method to clear the cache in the PropertyMessageResources and clear it when the user changes something. - Dan > -----Original Message----- > From: Jason Long [mailto:[EMAIL PROTECTED] > Sent: Monday, March 14, 2005 11:21 PM > To: 'Struts Users Mailing List' > Subject: Load message resources from DB??? > > Is it possible to load the message resources from a database > instead of a > file? If so can this be done without reloading the entire > application? I > would like to let users manage these. > > Thank you for your time, > > Jason Long > CEO and Chief Software Engineer > BS Physics, MS Chemical Engineering > http://www.supernovasoftware.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]