You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jean-Marie Pitre <jm...@cofisun.com> on 2006/08/04 16:30:21 UTC

RE : Re: Messages and Validator

Thank you,
I have found the solution, I created  a custom database-backed ressource bundle with cache and it works well.

Regards

-----Message d'origine-----
De : news [mailto:news@sea.gmane.org] De la part de Laurie Harper
Envoyé : mercredi 2 août 2006 23:59
À : user@struts.apache.org
Objet : Re: Messages and Validator

There's no reason a database-backed message bundle can't load all its 
messages in one go and cache them. That's all the standard property 
file-backed implementation does.

To provide an alternate message bundle implementation, you just need to 
configure a custom factory in struts-config.xml; see the commends in the 
DTD for details.

L.

Romu wrote:
> interesting question , but u will suffer low performance i think ( one
> database access  for each message ? ) .
> 
> i think if it's in a property file it's for simulate a static class .
> 
> 
> 2006/8/2, Jean-Marie Pitre <jm...@cofisun.com>:
>>
>>
>> Hello,
>>
>> I am using Validator framework with a Struts application.
>> I would like to know if it is possible to use message provided by a
>> database (or java class) rather than a propertie file ?
>>
>> Thank you,
>>
>> Jean-Marie.
>>
>> -------------------
>> Email Disclaimer
>> http://www.cofidis.be/emaildisclaimer.php
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: RE : Re: Messages and Validator

Posted by Niall Pemberton <ni...@gmail.com>.
This comes up regularly on the list - if you feel like documenting the
steps on the wiki I'm sure it would be a great help to others :-)

http://wiki.apache.org/struts/StrutsDocComments

Niall

On 8/4/06, Jean-Marie Pitre <jm...@cofisun.com> wrote:
>
> Thank you,
> I have found the solution, I created  a custom database-backed ressource bundle with cache and it works well.
>
> Regards
>
> -----Message d'origine-----
> De: news [mailto:news@sea.gmane.org] De la part de Laurie Harper
> Envoyé: mercredi 2 août 2006 23:59
> À: user@struts.apache.org
> Objet: Re: Messages and Validator
>
> There's no reason a database-backed message bundle can't load all its
> messages in one go and cache them. That's all the standard property
> file-backed implementation does.
>
> To provide an alternate message bundle implementation, you just need to
> configure a custom factory in struts-config.xml; see the commends in the
> DTD for details.
>
> L.
>
> Romu wrote:
> > interesting question , but u will suffer low performance i think ( one
> > database access  for each message ? ) .
> >
> > i think if it's in a property file it's for simulate a static class .
> >
> >
> > 2006/8/2, Jean-Marie Pitre <jm...@cofisun.com>:
> >>
> >>
> >> Hello,
> >>
> >> I am using Validator framework with a Struts application.
> >> I would like to know if it is possible to use message provided by a
> >> database (or java class) rather than a propertie file ?
> >>
> >> Thank you,
> >>
> >> Jean-Marie.
> >>
> >> -------------------
> >> Email Disclaimer
> >> http://www.cofidis.be/emaildisclaimer.php
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org