Dear ranchers,
Could you pls clarify my doubts on following topics
1. difference between RequestDispatcher.forward() and <
jsp:forward>
In some notes I found
A <jsp:forward> effectively terminates the current page. Nothing before the <jsp:forward> or after the <jsp:forward> is written to the response! It is not the same when using a requestDispatcher.forward().
When I executed both performs same operation and I found no difference. Then what makes difference
2. what is the difference between <jsp:forward> and response.sendRedirect()
I suggest that <jsp:forward> works on server side and
sendRedirect() works on client side. Is it true
3. In Whizlab docs, they mentioned that any response committed after sendRedirect(),forward(), sendError() and so on results in
IllegalStateException. Can I know the codes that leads to exception after these methods
4. In MZ notes, he mentioned
"When overriding doGet method, read the request data, write the response headers,get the response's writer or output stream object, and finally, write the response data"
when tried the code by placing setContentType() above getWriter() method, the code executed correctly. What happens to his statement
regards
david