Gregg Bolinger wrote:
> Would getContext().getLocale() not provide you with the same locale?
>
> LocalizationUtility.getErrorMessage(getContext().getLocale(),
> "some.key");
>
> Gregg
I use this method in my base ActionBean:
public String getMessage(String key, Object... parameters) {
return new LocalizableMessage(key,
parameters).getMessage(getContext().getRequest().getLocale());
}
Is there a better way ?
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users