You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "kongzhenhao (JIRA)" <ji...@apache.org> on 2016/02/02 10:34:39 UTC

[jira] [Commented] (WW-4602) How to add cookies to response after json type result

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

kongzhenhao commented on WW-4602:
---------------------------------

Use PreResultListener have to modify the business code,  is there any global way?

> How to add cookies to response after json type result
> -----------------------------------------------------
>
>                 Key: WW-4602
>                 URL: https://issues.apache.org/jira/browse/WW-4602
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Dispatch Filter
>    Affects Versions: 2.3.15.3
>            Reporter: kongzhenhao
>
> We have a filter before the one of struts2. At the end of filter,we tried to add cookie to response.When the type of action result is json, the resonse.isCommitted is set true, so the method addCookie of response did not add cookie to response.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)