Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A3F1183FA for ; Tue, 2 Feb 2016 09:35:39 +0000 (UTC) Received: (qmail 17655 invoked by uid 500); 2 Feb 2016 09:34:40 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 17604 invoked by uid 500); 2 Feb 2016 09:34:40 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 17405 invoked by uid 99); 2 Feb 2016 09:34:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2016 09:34:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E5D442C1F5C for ; Tue, 2 Feb 2016 09:34:39 +0000 (UTC) Date: Tue, 2 Feb 2016 09:34:39 +0000 (UTC) From: "kongzhenhao (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4602) How to add cookies to response after json type result MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)