You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by edgar <ed...@blue-moose.net> on 2002/11/19 17:59:58 UTC

Managing message keys

In a large project with a large number of app.properties keys does
anyone have ideas about 'key management'.

Thanks in advance.

Edgar


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Managing message keys

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Tue, 19 Nov 2002, edgar wrote:

> Date: Tue, 19 Nov 2002 11:59:58 -0500
> From: edgar <ed...@blue-moose.net>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>,
>      edgar@blue-moose.net
> To: 'Struts Users Mailing List' <st...@jakarta.apache.org>
> Subject: Managing message keys
>
> In a large project with a large number of app.properties keys does
> anyone have ideas about 'key management'.
>

One strategy that is commonly implemented for cases like this is to use
the fully qualified package name of the primary classes using a particular
key, to disambiguate them.

Struts offers the additional ability to use more than one application
resources file if you want to.

> Thanks in advance.
>
> Edgar

Craig


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Managing message keys

Posted by James Mitchell <jm...@telocity.com>.
Several IDEs (such as NetBeans) provide a nice i18n view of managing those
files in a spreadsheet-like editor.  So each locale would be another column
of values....its pretty slick.

If you care to use a database to store and retrieve your application
resources, I've created an implementation of MessageResources that does
this.  Support for multi-keyed bundles and Modules (1.1) is included (albeit
declarative).

I'm also building a management tool (not finished yet) that will allow you
to manage the key/value pairs from within your own running application.

The initial project is sitting on my server as a build-able struts-example
which uses MySql.  Feel free to download and try it. (It uses OJB under the
covers, so you never write or edit a single line of sql)

 http://www.open-tools.org/struts-atlanta/downloads

I'm in the process of refactoring the code to fit into commons-resources.
Once that's complete, I'll make the Struts version available (which will use
commons-resources).



James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"If you were plowing a field, which would you rather use? Two strong oxen or
1024 chickens?"
- Seymour Cray (1925-1996), father of supercomputing


> -----Original Message-----
> From: edgar [mailto:edgar@blue-moose.net]
> Sent: Tuesday, November 19, 2002 12:00 PM
> To: 'Struts Users Mailing List'
> Subject: Managing message keys
>
>
> In a large project with a large number of app.properties keys does
> anyone have ideas about 'key management'.
>
> Thanks in advance.
>
> Edgar
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>