2014-05-06 18:30 GMT+02:00 Bruno Klava :
> Hi,
>
> in order to load a message from a *.properties file from a servlet, I used
> to do:
>
> new ActionSupport().getText(messageKey);
Do you use it inside Struts action? ActionContext is action specific
which means you cannot access it from outside, fr
Answering my own question:
LocalizedTextUtil.findDefaultText(messageKey, Locale.getDefault())
On Tue, May 6, 2014 at 1:30 PM, Bruno Klava wrote:
> Hi,
>
> in order to load a message from a *.properties file from a servlet, I used
> to do:
>
> new ActionSupport().getText(messageKey);
>
> It use
Hi,
in order to load a message from a *.properties file from a servlet, I used
to do:
new ActionSupport().getText(messageKey);
It used to work in Struts versions up to 2.3.15.3.
In Struts 2.3.16+ versions, now I get a NPE:
java.lang.NullPointerException
at
com.opensymphony.xwork2.util.Localize
3 matches
Mail list logo