Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[servlet-dev] Question/Clarification about dispatch forward
  • From: "Ph. Dinh" <pmd1nh-bus@xxxxxxxxxxx>
  • Date: Fri, 15 Oct 2021 15:52:16 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wnV3WhAUAiF+sVCAAGprzEfBwar/jury7GXGLplw74E=; b=FZD+eED8hl5H5UHHr3WE5rL3bvoJdcF8U5ukMnD7B1cwXmLgPEo7NquMZIryWXFGhstyWyDxKtypIcwlAWB6+ispOrDpbbQzlxyGQAl5qPcm6QB5u/3lHyUfm6jzr1LaXlUdB6raazJSIEXCFI4ozvtESE6F/4QIaUbPWg3P2YgrQERM7Izao5z1tslFTWurnmvgbCZJjmqESHI4GHyGZHaKQCaG1Ev1m1gEax665G4jgYXaFrdOEvOp6C6yNshqXCHF30y5wV2r68bgSmx+anwnNTlvfcZ0Smqdv7hFPKUxptBZyjzOksoCIeOik+8pVrxbrcIwA0/CKpftv0t6CA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oQaQuzWBCJmbUAnUHHRHmzzwkVm2rlmkeHoH/SGRv89Svf6EVw7/qhxj9/MvXJWs/Hs0s4YGyTd5Yk3HASWavgn9UUa53Q72ryedG8en8QTonmtReHIW64jxV/7z6Jv9pg7+xXnCePmIM9bqM0ZnAbd49jOdCIzo6Qgwmgdcz6M4T1ASgdtbNyZzRY6B8CthB8R5RB9+wHWPi17SbonEIqXG6H/sRQOhtzN27mHDCGMekxPGGObs/r6V2N1nT4/Ncs803jbJBETdMYpfMD0E34PVezNqG+0sKIN5zEHuLBt6V/jcoz2zItpmclqanf5P+mLzFdFdyEv3AsD/xYbpbQ==
  • Delivered-to: servlet-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/servlet-dev/>
  • List-help: <mailto:servlet-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/servlet-dev>, <mailto:servlet-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/servlet-dev>, <mailto:servlet-dev-request@eclipse.org?subject=unsubscribe>
  • Suggested_attachment_session_id: 9686f0fa-c5f5-2439-759c-df2a6d7841e1
  • Thread-index: AQHXwdyWR60WtWd9qEKvFMRCY7hcmA==
  • Thread-topic: Question/Clarification about dispatch forward

Hi,
 

Servlet Spec. section 9.4. The Forward Method states:


Before the forward method of the RequestDispatcher interface returns without exception, the response content must be sent and committed, and closed by the servlet container, unless the request was put into the asynchronous mode.


When a wrapped response is used in the dispatch forward, which response object should be closed:

  1. The wrapped response
  2. The underlying/base response
Thanks!

PS: I also opened an issue for this question 
https://github.com/eclipse-ee4j/servlet-api/issues/426


Back to the top