Mike Kienenberger said:
...
> I would like to access both the default Locale and the MessageResources from
> a velocity template.
>
> I can get to the Locale using $msg.getLocale().
>
> Supposedly, I could use $msg.getResources(null) to get the MessageResources
> object, but I don't see how I can specify null.  Also, the method is marked
> protected, so it probably isn't accessible anyway.

yep, it's not.

> Can public $msg.getResources(void) be added to MessageTool to match
> getLocale()?

what for?  i don't see the use case.

> In the meantime, I suppose I can grab it out of the struts request attribute
> or subclass MessageTool,

yep.

> but it seems like this should be part of the public
> API.

i don't see why.  can you enlighten me?  in fact, i'm not even sure why
getLocale() was put in MessageTool.  not that i see a problem with it, i just
don't see the use.

Nathan Bubna
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to