struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <>
Subject Re: Customizing message translation
Date Wed, 14 Jun 2006 17:33:58 GMT
Struts uses MessagesResources to perform the key-->text translation.
The default implementation used is PropertyMessageResources (both in
the org.apache.struts.util package).

If you want to use your own MessageResources implementation then you
need to create two classes - the custom implementation and a factory
(MessageResourceFactory implementation) which creates an instance of
that implementation.

Then you configure struts with the name of the factory:


On 6/14/06, Scott Van Wart <> wrote:
> I'd like to expand the message translation with a few things.  I was
> wondering where I should look for plugging in my own processing of
> keys->message text.
> Thanks,
>  Scott

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message