I want to direct the user back to the previous page with the same get in the url
if (somecheck) {
req.getRequestDispatcher("register.jsp?email="+req.getParameter("email")).forward(req, resp);
}
But this directs the user to "/register.jsp"
instead of "/[email protected]"
How can i add the email to the url?