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() ...
permaculture is a more symbiotic relationship with nature so I can be even lazier. Read tiny ad:
how do I do my own kindle-like thing - without amazonhttps://coderanch.com/t/711421/engineering/kindle-amazon