You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2025/12/23 07:08:59 UTC

(struts) branch main updated: Fix Textfield tag not allowing white space. See WW-5592. (#1489)

This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/struts.git


The following commit(s) were added to refs/heads/main by this push:
     new 8e3bafd3c Fix Textfield tag not allowing white space. See WW-5592. (#1489)
8e3bafd3c is described below

commit 8e3bafd3cf1a88430f9a7705bd78a724d6faa4fc
Author: gregh3269 <gr...@gmail.com>
AuthorDate: Tue Dec 23 07:08:53 2025 +0000

    Fix Textfield tag not allowing white space. See WW-5592. (#1489)
    
    Co-authored-by: Greg Huber <gh...@apache.org>
---
 .../src/main/java/org/apache/struts2/views/java/Attributes.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/Attributes.java b/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/Attributes.java
index 77a51e64c..7b596c697 100644
--- a/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/Attributes.java
+++ b/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/Attributes.java
@@ -60,7 +60,7 @@ public class Attributes extends LinkedHashMap<String, String> {
     public Attributes addIfExists(String attrName, Object paramValue, boolean encode) {
         if (paramValue != null) {
             String val = paramValue.toString();
-            if (StringUtils.isNotBlank(val))
+            if (StringUtils.isNotEmpty(val))
                 put(attrName, (encode ? StringUtils.defaultString(StringEscapeUtils.escapeHtml4(val)) : val));
         }
         return this;