You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Maurizio Cucchiara (Closed) (JIRA)" <ji...@apache.org> on 2011/11/09 18:07:51 UTC

[jira] [Closed] (WW-3700) The ActionMessage/ActionError tags ignore the "escape" parameter making them unusable.

     [ https://issues.apache.org/jira/browse/WW-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maurizio Cucchiara closed WW-3700.
----------------------------------

       Resolution: Duplicate
    Fix Version/s:     (was: 2.2.x)
         Assignee: Maurizio Cucchiara

Could you check please if it works on trunk as you expected?
                
> 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
>            Assignee: Maurizio Cucchiara
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> 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