Check this link out. http://sourceforge.net/project/showfiles.php?group_id=49385&package_id=76369
Also the book 'Struts recipes' covers this topic. ----- Original Message ----- From: "Raghuveer Vellanki" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: RE: Load message resources from DB??? Date: Thu, 17 Mar 2005 17:05:20 +0530 > > 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] Antony Joseph http://www.logicden.com https://workeffort.dev.java.net -- _______________________________________________ NEW! Lycos Dating Search. The only place to search multiple dating sites at once. http://datingsearch.lycos.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]