title: Add text java requestDispatcher
body: <p>I want to direct the user back to the previous page with the same get in the url</p>
  
  <pre><code>if (somecheck) { 
   req.getRequestDispatcher("register.jsp?email="+req.getParameter("email")).forward(req, resp);
  }
  </code></pre>
  
  <p>But this directs the user to <code>"/register.jsp"</code> instead of <code>"/register.jsp?email=testemail@mail.com"</code></p>
  
  <p>How can i add the email to the url?</p>