what is the difference between using RequestDispatcher rd= req.getRequestDispatcher("/Servlet1");rd.include(req,res);andServlet1 s1=new Servlet1();s1.service(req,res);
The second one is just not the way to do it. All request/response processing must be done by the server, because how can you know that it won't do some other tasks in that include method?