servlet-spec
  1. servlet-spec
  2. SERVLET_SPEC-5

Need to update dispatch forward behavior in 9.4 of the spec.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      In section of 9.4 of Servlet 3.0 spec, it has the following:
      "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."

      In javadoc of AsyncContext#dispatch, it has the following:
      "Control over the request and response is delegated to the dispatch target, and the response will be closed when the dispatch target has completed execution, unless ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest, ServletResponse) are called."

      According to examples illustrated in javadoc of AsyncContext#dispatch, one need to update the information in section 9.4 so that it is consistent with those in AsyncContext#dispatch.

        Activity

        Hide
        Shing Wai Chan added a comment -

        update in spec

        Sending dispatchingrequests.fm
        Transmitting file data .
        Committed revision 2.

        Show
        Shing Wai Chan added a comment - update in spec Sending dispatchingrequests.fm Transmitting file data . Committed revision 2.
        Hide
        Shing Wai Chan added a comment -

        The javadoc is updated:
        Sending javax.servlet/src/main/java/javax/servlet/AsyncContext.java
        Sending javax.servlet/src/main/java/javax/servlet/ServletRequest.java
        Transmitting file data ..
        Committed revision 51595.

        Show
        Shing Wai Chan added a comment - The javadoc is updated: Sending javax.servlet/src/main/java/javax/servlet/AsyncContext.java Sending javax.servlet/src/main/java/javax/servlet/ServletRequest.java Transmitting file data .. Committed revision 51595.
        Hide
        Shing Wai Chan added a comment -

        In javadoc of ServletRequest#startAsync(), it would be a good idea to add a link to AsyncContext#dispatch as it indicates one difference between startAsync with and without argument.

        Show
        Shing Wai Chan added a comment - In javadoc of ServletRequest#startAsync(), it would be a good idea to add a link to AsyncContext#dispatch as it indicates one difference between startAsync with and without argument.

          People

          • Assignee:
            Shing Wai Chan
            Reporter:
            Shing Wai Chan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: