struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miguel Almeida <>
Subject Apache Struts 2.3.35 Upgrade - backward incompatibility in s:if
Date Wed, 29 Aug 2018 17:03:41 GMT
We upgraded from 2.3.34 to 2.3.35 in one of our applications, but although
the upgrade is described as backwards compatible, we found a problem in the

The simplified example is as follows.
*Given* a JSP with:

<s:if test="#scopeValues.contains('Portuguese Things')">
                    foo<s:property value="#scopeValues"/>
                     bar<s:property value="#scopeValues"/>

*And *scopesValues was previously set (<s:set var="scopeValues"
value="scopes"></s:set>, where scopes is a List<String>scopes in the action)

*When* the List<String> scopes has [Portuguese Things, XXX]
*Then *the JSP will print: bar[Portuguese Things, XXX]

If I revert to 2.3.34:
*Then *the JSP will print: foo[Portuguese Things, XXX]

What could be causing this? Since this breaks one of our pages we are now
hesitant on what other places could break after the upgrade.

Kind regards,


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message