title: Redirect to another servlet in java
body: <p>I am having troubles of directing to another servlet in a servlet file. I have a servlet file called <code>NewDreamServlet.java</code> and I want to redirect it to <code>MyDreamsServlet.java</code>. </p>
  
  <p>This is what I currently have in the <code>NewDreamServlet.java</code> for redirecting. </p>
  
  <pre><code>request.getRequestDispatcher("/MyDreamsServlet").forward(request, response);
  </code></pre>
  
  <p>When I call this it ends up going to a blank page,</p>
  
  <pre><code>http://localhost:8080/ps10-austint/NewDreamServlet
  </code></pre>
  
  <p>How exactly would I accomplish this? Please let me know if there is any misunderstanding.</p>