About Question com.enthuware.ets.scwcd.v5.2.390 :
Posted: Thu Jul 12, 2012 2:09 am
Which of the following statements is correct regarding a RequestDispatcher object?
a>A call to forward() clears the output buffer before the target resource is invoked.
b>The execution control returns to the resource that has called the forward() method after the callee resource finishes processing.
c>It is not advisable for the forwarding resource to produce any output.
all the 3 options above are marked as correct. But I am pretty not sure how is option"b" correct. Ideally in forward the control does not return back to the forwarding page. Isnt this the difference between the include and forward mechanisms?
a>A call to forward() clears the output buffer before the target resource is invoked.
b>The execution control returns to the resource that has called the forward() method after the callee resource finishes processing.
c>It is not advisable for the forwarding resource to produce any output.
all the 3 options above are marked as correct. But I am pretty not sure how is option"b" correct. Ideally in forward the control does not return back to the forwarding page. Isnt this the difference between the include and forward mechanisms?