what class are you doing this in?  Are you subclassing off of ActionSupport?
-- 
_________________________________________________________
Adam Brin
Director of Technology, Digital Antiquity
480.965.1278

> On Sep 22, 2017, at 7:20 AM, Klaus Tachtler <kl...@tachtler.net> wrote:
> 
> Hi Łukasz,
> 
> can you give me an example, so that I can understand it right?
> 
> I have ActionContext and ActionContext.getContext().getLocale() BUT how can I 
> use getText(key) in my situation.
> 
> Thank you patience with me!
> Klaus.
> 
> 
>> 2017-09-22 16:12 GMT+02:00 Klaus Tachtler <kl...@tachtler.net>:
>>> is it possible to use getText("global.unkonwn") with the
>>> ActionContext.getContext().getLocale() like
>>> - getText("global.unknown", ActionContext.getContext().getLocale());
>> 
>> You don't have to, I mean "getText(key)" does it for you - it uses the
>> current Locale defined in ActionContext
>> 
>> 
>> 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
> 
> 
> ----- Ende der Nachricht von Lukasz Lenart <lukaszlen...@apache.org> -----
> 
> 
> 
> 
> -- 
> 
> ------------------------------------------
> e-Mail  : kl...@tachtler.net
> Homepage: http://www.tachtler.net
> DokuWiki: http://www.dokuwiki.tachtler.net
> ------------------------------------------
> 
> 
> <Mail Attachment>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org


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

Reply via email to