2017-09-22 16:39 GMT+02:00 Adam Brin <ab...@digitalantiquity.org>:
> import com.opensymphony.xwork2.TextProvider;
>
> public class FileReader {
>
>         private static Locale locale = null;
>
>        // not sure if this needs to be static
>         public static Bean determineFileReader(String userString, 
> TextProvider provider) {
>
>                 String i18nString = provider.getText("global.unknown");

I would rather pass a localised string to the bean (if possible), this
creates a dependency on Struts in non-Struts related bean


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to