A good workman is known by his tools.
"It's not enough that we do our best; sometimes we have to do<br />what's required."<br /> <br />-- Sir Winston Churchill
the only way that stuff in the script could have been omitted would be if scripting was disabled in the DD
but that is still no reason why the control should return to the forwarding servlet after the request has been forwarded once
Q. How come you didn't talk about the RequestDispatcher.include() method?
A. It's no on the exam, for one thing. for another, we already mentioned that it' not used much in the real world. But to satisfy your curiosity, the include() method sends the request to something else (typically another servlet) to do some work and then comes back to the sender! In other words, include() means asking for help in handling the request, but it's not a complete hand-off. It's temporary, rather than permanent transfer of control. With forward(), you're saying, "That's it, I'm not doing anything else to process this request and response." But with include() ...
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |