struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Work in progress - 2.3.16
Date Tue, 19 Nov 2013 14:51:23 GMT
2013/11/19 Volker Krebs <volker.krebs@abas.de>:
> Ok, got it.
> <s:if test="#item.content[key] != null">
> </s:if>
> In 2.3.15.3 it returns true.
> In 2.3.16 it returns false.
>
> This is because I was accessing the map wrong (arghhh ... OGNL, after so
> many years still unhandleable)
> In 2.3.15.3 a new map entry with key null and value '' is created somewhere
> in the struts2 stack. And #item.content[key] evaluates to
> #item.content[null] which returns ''.
>
> In 2.3.16 the new map entry is not created. And #item.content[key] always
> returns null without creating a new map entry.

I think it is related to that issue
https://issues.apache.org/jira/browse/WW-3603

I will update Version Notes as well


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

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


Mime
View raw message