I am trying to pass data from one servlet to another using the RequestDispatcher. This is my code for the Dispatcher.
String address; address = \"/Java Reso
You can directly write your name of the servlet in request.getRequestDispatcher("your servlet name"); it will fetch the path according to the web.xml configuration.
request.getRequestDispatcher("your servlet name");
RequestDispatcher rd= request.getRequestDispatcher("MyServletName"); rd.forward(request,response);