Better late than never, I've imported the message resources classes into
the Sandbox, under directory name "resources". I've also added Michael
and Jason as initial committers, since they've both expressed interest in
working on this.
As I've mentioned before, I'm not married to these APIs, although for
Struts backwards compatibility I'll probably keep equivalent wrappers
(in Struts) if they change radically. In particular, I don't know if the
factory abstractions are right, but haven't ever had time to go back and
analyze them to see if I could come up with something better.
Craig
PS: Well, we've now copied *everything* that is generic out of
org.apache.struts.util -- guess I didn't do so bad at creating reusable
components :-)
On Fri, 25 May 2001, SCHACHTER,MICHAEL (HP-NewJersey,ex2) wrote:
> Craig and Jason,
>
> +1, and I'd like to help out on this as much as possible.
>
> -----Original Message-----
> From: Jason van Zyl [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 23, 2001 12:57 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Struts Message Resources
>
>
> "Craig R. McClanahan" wrote:
> >
> > 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.
>
> +1
>
> > 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.
>
> Right, exactly. Any source :-)
>
> > > --
> > > 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
> > >
>
> --
> jvz.
>
> Jason van Zyl
> [EMAIL PROTECTED]
>
> http://jakarta.apache.org/velocity
> http://jakarta.apache.org/turbine
> http://jakarta.apache.org/commons
> http://tambora.zenplex.org
>