James I have a separate thread going on this, I apologize for that, but I'll summarize, and please excuse my ignorance.
Essentially, I understand your point , but if I may delve deeper, I see that inheritance wise, 1. PropertyMessageResources extends MessageResources 2. PropertyMessageResourcesFactory extends MessageResourcesFactory Logical. So, I'll create 1. DatabaseMessageResources extends MessageResources 2. DatabaseMessageResourcesFactory extends MessageResourcesFactory Questions 1. should I create them in the org.apache.struts.util. package? mucking with struts seems risky 2. how do I tell the application to use MY DatabaseMessageResourcesFactory and DatabaseMessageResources instead of PropertyMessageResourcesFactory and PropertyMessageResources then... I'd just create my own Struts.jar with all my nice custom code in it? uggghhhorammmaaaa also, that begs several questions... 1. where am I most logically making my DB connection? in my app now, it happens AFTER the message reources are loaded. oh the pain... On Apr 7, 2005 2:40 PM, James Mitchell <[EMAIL PROTECTED]> wrote: > You should extend MessageResources and clear the protected Map "formats" > with each call to your class. > > > -- > James Mitchell > Software Engineer / Open Source Evangelist > Consulting / Mentoring / Freelance > EdgeTech, Inc. > 678.910.8017 > AIM: jmitchtx > Yahoo: jmitchtx > MSN: [EMAIL PROTECTED] > > ----- Original Message ----- > From: "Fogleson, Allen" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <user@struts.apache.org>; > <[EMAIL PROTECTED]> > Sent: Thursday, April 07, 2005 2:25 PM > Subject: RE: [resources] was: Re: RESEND: RE: Load message > resourcesfromDB??? > > The problem is that the collection is in a hashmap in the > propertiesMessageResource class. And it is private in there, so the only > real solution is your own custom MessageResource class. > > Al > > -----Original Message----- > From: David Johnson [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 07, 2005 1:21 PM > To: Struts Users Mailing List > Subject: Re: [resources] was: Re: RESEND: RE: Load message > resourcesfromDB??? > > Hi > > This is sort of what I'm looking for as well. I sent a separate post > about it, in fact. My goal is the simple substitution of whatever > collection object type struts is using with one of the same type that > I have loaded fomr a database table. > > I ***hate*** to tinker with the struts source code... so what might > help me is knowing where the collection is, and what type it is, and > whether or not I can simply replace it with another (of the same type) > > D > > On Apr 7, 2005 12:50 PM, Fogleson, Allen <[EMAIL PROTECTED]> > wrote: > > Ahh that makes sense. Yes. > > > > -----Original Message----- > > From: James Mitchell [mailto:[EMAIL PROTECTED] > > Sent: Thursday, April 07, 2005 11:45 AM > > To: Struts Users Mailing List > > Subject: Re: [resources] was: Re: RESEND: RE: Load message resources > > fromDB??? > > > > For localized configuration, I'm thinking Tiles and Validator config. > > > > -- > > James Mitchell > > Software Engineer / Open Source Evangelist > > Consulting / Mentoring / Freelance > > EdgeTech, Inc. > > 678.910.8017 > > AIM: jmitchtx > > Yahoo: jmitchtx > > MSN: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- > -Dave > [EMAIL PROTECTED] > > --------------------------------------------------------------------- > 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] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- -Dave [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]