Re: NPE in ActionSupport.getText() from servlet

2014-05-10 Thread Lukasz Lenart
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

Re: NPE in ActionSupport.getText() from servlet

2014-05-06 Thread Bruno Klava
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