An analogy
You meet a bully and he asks you to hand over your coke (makes a Request)
You're a teeny weeny guy but you have an Anrold Schwarnegger friend sitting a foot away.
You think to yourself "f*** off you A*******" (response.getOutputStream().write()) {no problem, ure still thinking)} and want to call your friend and ask him to deal with the bully (RequestDispatcher.forward())
but before you tell your friend what's on your mind, you feel like showing off a bit and blurt out what you have in your mind -in other words- "f*** off you a******" (response committed -> out.flush() )
result: the bully knocks a row of teeth of your upper jaw OFF *ouch* (
IllegalStateException)
...
but suppose you whispered in Arnie's ears "please teach this harebrain a lesson" and stopped yourself from blurting-
result: the bully gets strung to the nearby tree with his thumbs + you get a coke for getting the bully handled so smoothly
[ April 18, 2006: Message edited by: Akshay Kiran ]