struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre-Yves Soblet (Jira)" <>
Subject [jira] [Created] (WW-5086) s:set with empty body
Date Fri, 14 Aug 2020 10:18:00 GMT
Pierre-Yves Soblet created WW-5086:

             Summary: s:set with empty body
                 Key: WW-5086
             Project: Struts 2
          Issue Type: Bug
          Components: Core Tags
    Affects Versions: 2.5.22
            Reporter: Pierre-Yves Soblet

In Struts 2.5.22, the following JSP fragment:
<s:set var="myVariable"> </s:set>
<s:property value="#myVariable"/>
generates the following HTML fragment:
I would expect an empty output (as {{trimBody}} is set to "true" by default).


Moreover, when the {{set}} tag body is empty:
<s:set var="myVariable" trimBody="false"/>
<s:property value="#myVariable"/>
disregarding the value of the {{trimBody }}attribute, the output is the same:

I encountered this issue after migrating from Struts 2.5.20 to Struts 2.5.22, so I assume
this is a regression.

This message was sent by Atlassian Jira

View raw message