struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-3906) All HttpHeaderResult parameters should be parsed for OGNL expressions
Date Tue, 18 Dec 2012 21:36:14 GMT

    [ https://issues.apache.org/jira/browse/WW-3906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13535363#comment-13535363
] 

Hudson commented on WW-3906:
----------------------------

Integrated in Struts2-JDK6 #589 (See [https://builds.apache.org/job/Struts2-JDK6/589/])
    WW-3906 updates docs about parsing parameters (Revision 1423626)
WW-3906 adds support to parse all parameters of HttpHeaderResult (Revision 1423621)

     Result = UNSTABLE
lukaszlenart : 
Files : 
* /struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/HttpHeaderResult.java

lukaszlenart : 
Files : 
* /struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/HttpHeaderResult.java
* /struts/struts2/trunk/core/src/test/java/org/apache/struts2/dispatcher/HttpHeaderResultTest.java

                
> 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.9
>
>         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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message