I probably could, but I think this is less of an Action problem and more of a 
struts/spring dependency injection problem. I don’t think there’s anything 
wrong with the Action class code itself, unless there’s an annotation that I 
need to add now that wasn’t necessary with 2.5.10.1


> On 11 Sep 2017, at 14:53, Lukasz Lenart <lukaszlen...@apache.org> wrote:
> 
> 2017-09-11 15:51 GMT+02:00 LAW Andy <andy....@roslin.ed.ac.uk>:
>> I recently upgraded the struts 2 library in an old web application from 
>> 2.5.10.1 to 2.5.13. Simultaneously I upgraded Spring (which we use for 
>> managing the database connections and some other bits and bobs) from 4.3.7 
>> to 4.3.10.
>> 
>> Now, the application runs but the actions do not have a Container injected. 
>> This manifests itself when I try to call getText() - there is no 
>> TextProvider so the library tries to get one from a TextProviderFactory 
>> which comes from the Container which is null which means I get an NPE and a 
>> blank returned value. Rolling back the dependencies to the previous versions 
>> reverts to correct behaviour.
> 
> Can you post an example code of your action?
> 
> 
> 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
> 


-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


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

Reply via email to