This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
Hello All, What is the difference between RequestDispatcher's forward method and include method? In which context each can be better utilised. Thanks in adavnce for your help. Regards, Holla
posted 15 years ago
hi, forward : should be used only when u have not started replying to the client by ServletOutputStream or the PrintWriterStream. include : can be used before or after the servlet has used either of the two mentioned above. Also note that the resource called cannot set the headers, if it tries to do so then the result is not guaranteed. HTH sagar