You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Nacho <na...@siapi.es> on 2000/07/27 01:45:33 UTC
[Proposal] Messages interface
Hola a todos:
I'm trying to use struts with my own app that is tied to database full
of content data, my problem it that having all the strings
internacionalized i dont find any smart way to connect struts message
and errors tag to get the messages from the database, how about :
* made MessageResources a interface and the actual MessageRosources an
impl of this interface,
* add a new config string to the action servlet that points to the right
impl for messages
this can made MessageResources pluggable and thus i can use my database
to get the strings needed. Any Comments?
Thanks in advance.
Saludos ,
Ignacio J. Ortega
Re: [Proposal] Messages interface
Posted by Marius Sorin Barduta <ma...@necomm.ro>.
In my opinion, I think it's a good idea. In fact, I think many applications
will use both strings from a file and strings from a database.
Of course, the particular implementation of MessageResource should deal with
this case.
Marius
----- Original Message -----
From: "Nacho" <na...@siapi.es>
To: "'struts-dev'" <st...@jakarta.apache.org>
Sent: Thursday, July 27, 2000 2:45 AM
Subject: [Proposal] Messages interface
> Hola a todos:
>
> I'm trying to use struts with my own app that is tied to database full
> of content data, my problem it that having all the strings
> internacionalized i dont find any smart way to connect struts message
> and errors tag to get the messages from the database, how about :
>
> * made MessageResources a interface and the actual MessageRosources an
> impl of this interface,
>
> * add a new config string to the action servlet that points to the right
> impl for messages
>
> this can made MessageResources pluggable and thus i can use my database
> to get the strings needed. Any Comments?
>
> Thanks in advance.
>
> Saludos ,
> Ignacio J. Ortega