On Wed, 23 May 2001, Jason van Zyl wrote:

> Hi,
> 
> I would like to use the message resources utilities in Struts
> to make a pull tool in turbine for localizing messages.
> 
> Craig, do you have any thoughts? Is there any other locale
> utilities that people know about? Could we make a little
> locale utility package possibly?
> 

+1000 on having a message resources gadget in Commons

+0.5 about using the one from Struts, other than as a starting point.  I
don't think I've got all the abstractions quite right -- but I'm sure this
crowd can fix it :-).  If you like, I'll check the appropriate stuff into
the sandbox so we can start hammering on it.

One meta-issue that I ran into with Struts (and the reason that I'm not
using ResourceBundle underneath) is that some app servers want your
servlet context attributes (as well as your session attributes) to be
Serializable.  This probably won't affect Turbine (which, I gather,
prefers singletons using global statics for stuff like this), but will
affect others who want to store message resources in the servlet context.

> I would also like to make an XMLMessageResource class
> so I figured we might put these utilities in a place they
> can be shared.
> 

Sounds good.  There's also been talk on the Struts list of an
implementation that looks up message strings in a database as needed.

> -- 
> jvz.
> 

Craig


> Jason van Zyl
> [EMAIL PROTECTED]
> 
> http://jakarta.apache.org/velocity
> http://jakarta.apache.org/turbine
> http://jakarta.apache.org/commons
> http://tambora.zenplex.org
> 

Reply via email to