title: Passing data from servlet to another servlet using RequestDispatcher
body: <p>I am trying to pass data from one servlet to another using the RequestDispatcher. This is my code for the Dispatcher.</p>
  
  <pre><code>String address;
  
  address = "/Java Resources/src/coreservlets/MapOut.java";
  
  RequestDispatcher dispatcher =
    request.getRequestDispatcher(address);
  dispatcher.forward(request, response);
  </code></pre>
  
  <p>When I try to run it, it gives me an error saying the path is unavailable. Do I have to include something for the dispatcher to send to another servlet?</p>