Please do it,

looks like an interesting addition. I guess you could check for your new XML 
defined datasource and default to the struts-config one if not present.

Anyway, congratulations,

Adolfo.

>From: "James Mitchell" <[EMAIL PROTECTED]>
>Reply-To: "Struts Developers List" <[EMAIL PROTECTED]>
>To: "Struts Developers List" <[EMAIL PROTECTED]>
>Subject: RE: [MessageResources] loading bundle from db
>Date: Wed, 4 Sep 2002 08:14:01 -0400
>
>Yes, you are correct.  This is not core.  This is my own implementation.
>I've got 3 in mind
>
>  JDBCMessageResources
>  OJBMessageResources
>  XMLMessageResources
>
>
>The reason for my original post....I was asking about a simple design 
>choice
>that was made in the past about what application resources are available to
>MessageResources Implementations.
>
>I was hoping to use the datasource (that someone might have configured in
>the struts-config), but I've decided to allow for datasource configuration
>(and other needed info) in a separate property file configured by the same
>'parameter' attribute of the message-resources in the struts-config 
>(similar
>to the current ProperyMessageResources).
>
>Anyway, I'll probably finish the code today or tomorrow, do a little 
>testing
>and then make it available on the users list by the end of this week.
>
>
>James Mitchell
>Software Engineer\Struts Evangelist
>Struts-Atlanta, the "Open Minded Developer Network"
>http://www.open-tools.org/struts-atlanta
>
>
>
>
> > -----Original Message-----
> > From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 04, 2002 7:51 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [MessageResources] loading bundle from db
> >
> >
> >
> > Hi James,
> >
> > JDBCMessageResources? Is this class an implementation of
> > MessagesResources
> > that allows store them in a database rather than in a properties file?
> >
> > If so, where did you get it? I think it does not come with the
> > Struts 1.1b2
> > distribution...
> >
> > TIA,
> >
> > Adolfo.
> >
> > >From: "James Mitchell" <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Developers List" <[EMAIL PROTECTED]>
> > >To: "Struts Developers List" <[EMAIL PROTECTED]>
> > >Subject: RE: [MessageResources] loading bundle from db
> > >Date: Wed, 4 Sep 2002 07:48:45 -0400
> > >
> > >Never mind.  I found a work-around (sort of).
> > >
> > >James Mitchell
> > >Software Engineer\Struts Evangelist
> > >Struts-Atlanta, the "Open Minded Developer Network"
> > >http://www.open-tools.org/struts-atlanta
> > >
> > >
> > >
> > >
> > > > -----Original Message-----
> > > > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, September 03, 2002 6:10 PM
> > > > To: Struts Developers List
> > > > Subject: RE: [MessageResources] loading bundle from db
> > > >
> > > >
> > > > No comments?
> > > >
> > > > James Mitchell
> > > > Software Engineer\Struts Evangelist
> > > > Struts-Atlanta, the "Open Minded Developer Network"
> > > > http://www.open-tools.org/struts-atlanta
> > > >
> > > >
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Monday, September 02, 2002 4:11 AM
> > > > > To: Struts Developers List
> > > > > Subject: [MessageResources] loading bundle from db
> > > > >
> > > > >
> > > > > I've got JDBCMessageResources working, but in my attempts to make
> > > > > this more
> > > > > flexible I've come across a peculiar problem.
> > > > >
> > > > > I was wondering if there was a reason that the MessageResources
> > > > > implementations
> > > > > are not given a reference to MessageResourcesConfig or any
> > > > other resources
> > > > > (e.g. Datasources configured through the struts-config).
> > > > >
> > > > > I could be wrong (after all...its 4AM), but this makes it
> > > > > impossible to pass
> > > > > any properties configured via set-property in the
> > > > struts-config.  The only
> > > > > way I can do this is to use 'parameter' from message-resources.
> > > > > (I need to
> > > > > pass more than one parameter)
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Am I way off in left field here?
> > > > >
> > > > > Is it even feasible to change the framework to do something
> > like this:
> > > > >
> > > > >    <plug-in
> > > > > className="org.apache.struts.util.PropertyMessageResourcesPlugin">
> > > > >      <set-property
> > > > >         property="parameter"
> > > > >
> > >value="org.apache.struts.webapp.example.ApplicationResources"/>
> > > > >    </plug-in>
> > > > >
> > > > >
> > > > >
> > > > > James Mitchell
> > > > > Software Engineer\Struts Evangelist
> > > > > Struts-Atlanta, the "Open Minded Developer Network"
> > > > > http://www.open-tools.org/struts-atlanta
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > To unsubscribe, e-mail:
> > > > <mailto:[EMAIL PROTECTED]>
> > > > For additional commands, e-mail:
> > ><mailto:[EMAIL PROTECTED]>
> > >
> > >
> > >
> > >--
> > >To unsubscribe, e-mail:
> > ><mailto:[EMAIL PROTECTED]>
> > >For additional commands, e-mail:
> > ><mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
> > <HTML>
> >       <HEAD>
> >              <TITLE>Adolfo's signature</TITLE>
> >       </HEAD>
> >       <BODY>
> >              <center><b><em>Adolfo Rodriguez Miguelez</em><b></center>
> >
> >       </BODY>
> >       </HTML>
> >
> >
> >
> >
> >
> > _________________________________________________________________
> > Chat with friends online, try MSN Messenger: http://messenger.msn.com
> >
> >
> > --
> > To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to