Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3906

All HttpHeaderResult parameters should be parsed for OGNL expressions

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        1. patch-3906.patch
          4 kB
          Jose L Martinez-Avial

        Activity

          People

            lukaszlenart Lukasz Lenart
            jlmagc Jose L Martinez-Avial
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: