[
https://issues.apache.org/jira/browse/WW-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dimi Paun updated WW-3700:
--------------------------
Fix Version/s: 2.2.x
> 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
> Fix For: 2.2.x
>
> 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