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]



Reply via email to