"Schachter, Michael" wrote:

> Hi,
>
> I'm attempting to develop a fuller form of internationalization for Struts,
> which includes retrieving content from more than something such as a
> ResourceBundle.  The basic idea is that you have a Resource, which is an
> interface that represents anything that has internationalized content.  It
> has a method that looks basically like this:
>
> public byte[] getData(String key, Locale locale, TimeZone timeZone);
>
> Of course, time zone is optional, it would depend on the implementation
> whether or not to use it.
>

It would be interesting if the existing MessageResources mechanisms (and the
<bean:message> tag) could be layered on top of this abstraction in some
convenient way -- either by creating an implementation of MessageResources or
by extending your Resource abstraction to include a getString() method.

Craig


Reply via email to