struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dimi Paun (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (WW-3700) The ActionMessage/ActionError tags ignore the "escape" parameter making them unusable.
Date Wed, 09 Nov 2011 16:23:51 GMT
The ActionMessage/ActionError tags ignore the "escape" parameter making them unusable.
--------------------------------------------------------------------------------------

                 Key: WW-3700
                 URL: https://issues.apache.org/jira/browse/WW-3700
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - Java Templates
    Affects Versions: 2.2.3.1
         Environment: All
            Reporter: Dimi Paun


The ActionError and ActionMessage tag do not respect the "escape" parameter, making them unusable.
{code:title=AbstractMessageListHandler:54|borderStyle=solid}
   characters(error);
{code} 

Which means always escape.

In contrast, FeildError does this correctly:
{code:title=FieldErrorHandler:70|borderStyle=solid}
   characters(fieldError, params.containsKey("escape") ? (Boolean) params.get("escape") :
true);
{code} 

The fix is trivial:
{code:title=AbstractMessageListHandler:70|borderStyle=solid}
-                    characters(error);
+                    characters(error, params.containsKey("escape") ? (Boolean) params.get("escape")
: true);
{code} 




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message