Question: What is the difference between RequestDispatcher and sendredirect?
What is the difference between RequestDispatcher and sendredirect?
RequestDispatcher is an interface which is used to communicate two webapplications those are residing in the same server. we know that there are two methods in this Interface they are forward(req,res) and include(req,res).While to Communicate two or more webapplications which are residing in the different servers we are using sendRedirect(url address).
For more information, visit the following link: