struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4311) HttpHeaderResult should allow to provide a body for the response
Date Wed, 26 Mar 2014 05:23:18 GMT

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

Lukasz Lenart commented on WW-4311:
-----------------------------------

Changing type can break backward compatibility


> HttpHeaderResult should allow to provide a body for the response
> ----------------------------------------------------------------
>
>                 Key: WW-4311
>                 URL: https://issues.apache.org/jira/browse/WW-4311
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Dispatch Filter
>            Reporter: Jose L Martinez-Avial
>            Priority: Minor
>             Fix For: 2.5
>
>
> Curently the HttpHeaderResult can only write to the body response if it is the result
has a parameter error (through the errorMessage setter), and then it uses javax.servlet.http.HttpServletResponse#sendError(int,
String) to send the error, with the error message in the body, to the client.
> If the result has a parameters status, and no error, then nothing is written to the response
body. It only set the status and the headers, and send it to the client.
> I suggest to add a parameter message that can be written to the response when using the
parameter status.
> I'm working on a patch for this, it shouldn't take long.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message