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

How to add cookies to response after json type result

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Done
    • 2.3.15.3
    • None
    • Dispatch Filter
    • None

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            kongzhenhao kongzhenhao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment