A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Web Component Certification (SCWCD/OCPJWCD)
Joined: Feb 22, 2005
Feb 28, 2005 22:30:00
Ques ID: 1074483088810
Which of the following statements is correct regarding a RequestDispatcher?
The execution control returns to the resource that has called the forward() method after the callee resource finishes processing.
RequestDispatcher.forward() is also a normal method call, so the control does return to the calling resource
Is this correct? Doesn't forward means go to the next resource ?
Joined: Dec 19, 2004
Feb 28, 2005 22:41:00
Forward is a normal method so the control does comes back to the caller.
However the control also goes to the forwarded resource for processing..
But if you write to response something after forward then it will be ignored because the response gets commited after the control returns. So it will give
I agree. Here's the link:
regarding a RequestDispatcher object
Which of the following statements is correct regarding a RequestDispatcher object?
[HFSJ 2nd Edition] chapter 5 Mock Exam Question # 15
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014