struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From LAW Andy <andy....@roslin.ed.ac.uk>
Subject Re: No container in actions after upgrading to 2.5.13
Date Thu, 14 Sep 2017 09:11:42 GMT
> 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.

Later,

Andy




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


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


Mime
View raw message