1. Which of the following statements is true? A. If the target servlet does not commit or send its response, the calling servlet can still continue processing logic after the forward(�) call. B. Control does not return to the originating servlet after a forward(�) call is made. C. A forward(�) call will not continue to process until the target servlet commits or sends its response. D. None of the above.
Sunder Ganapathy
Ranch Hand
Joined: Apr 01, 2003
Posts: 120
posted
0
It will none of the above . The control returns to the calling servlet executing lines which do not attempt to affect the response.
Gaurav Gambhir
Ranch Hand
Joined: Mar 04, 2006
Posts: 252
posted
0
Thanks Sunder, but the answer is C , I just confirmed it from API SRV.8.4
Actually, not even C is correct. The container is responsible for sending, committing, and closing the response - not the servlet!
It's unlikely the real exam would ever have a question like that anyway, as the real exam does not focus on container laws.
Gaurav, it would be more helpful to our community if you would share your thoughts when posting a new thread rather than only asking for the answer.
A good workman is known by his tools.
Gaurav Gambhir
Ranch Hand
Joined: Mar 04, 2006
Posts: 252
posted
0
Thanks Marc, but as I was not sure about any of the options before putting it up, until I went thru the specs, still not sure as if how this happens,but as if you are saying donot focus on container laws, That's ok