Issue Details (XML | Word | Printable)

Key: SERVLET_SPEC-5
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Shing Wai Chan
Reporter: Shing Wai Chan
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
servlet-spec

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

Created: 08/Aug/11 10:15 PM   Updated: 22/Dec/11 09:27 PM   Resolved: 22/Dec/11 09:27 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Tags:
Participants: Shing Wai Chan


 Description  « Hide

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.



Shing Wai Chan added a comment - 10/Aug/11 10:30 PM

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.


Shing Wai Chan added a comment - 15/Dec/11 08:02 PM

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.


Shing Wai Chan added a comment - 22/Dec/11 09:27 PM

update in spec

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