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