struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: No container in actions after upgrading to 2.5.13
Date Tue, 19 Sep 2017 07:25:33 GMT
2017-09-14 11:11 GMT+02:00 LAW Andy <andy.law@roslin.ed.ac.uk>:
>> On 14 Sep 2017, at 09:48, Lukasz Lenart <lukaszlenart@apache.org> wrote:
>>
>> You are not the first person who complains about missing container ...
>> I wonder if we should add a fallback though.
>>
>>        if (container == null) {
>>            LOG.warn("Container is null, action was created manually?
>> Fallback to ActionContext");
>>            container = ActionContext.getContext().getContainer();
>>        }
>
> That would get *my* vote.

Done but still this requires re-think from our side
https://issues.apache.org/jira/browse/WW-4861


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

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


Mime
View raw message