[
https://issues.apache.org/jira/browse/WW-3906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15306768#comment-15306768
]
Lukasz Lenart commented on WW-3906:
-----------------------------------
[~jflefebvre] sure thing, please register a new task referencing this one.
> All HttpHeaderResult parameters should be parsed for OGNL expressions
> ---------------------------------------------------------------------
>
> Key: WW-3906
> URL: https://issues.apache.org/jira/browse/WW-3906
> Project: Struts 2
> Issue Type: Improvement
> Components: Core Actions, Plugin - JSON
> Affects Versions: 2.3.4
> Reporter: Jose L Martinez-Avial
> Assignee: Lukasz Lenart
> Labels: Ognl, Result
> Fix For: 2.3.12
>
> Attachments: patch-3906.patch
>
>
> Currently only some parameters for ResultType are parsed for OGNL expression.
> For example, HttpHeaderResult implements that option only for errorMessage
> and Headers, but not for errorCode or status. So it is not possible to set
> dinamically the error code, it needs to be hardcoded in the XML configuration
> file. The same issue happens with the JSONResult. That should be changed in
> order to support OGNL expression for parameter values where it is possible.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)