Good Morning!
I would like to use the RequestDispatcher forward method to send people to a new page. I have the code below, but I get an error that the redirect must start with a /.
Example Code, If I have Google.jsp with this code:
<%@ page import="java.io.*,java.util.*,javax.servlet.*,javax.servlet.http.*;"%>
<%
RequestDispatcher rd = getServletContext().getRequestDispatcher("http://www.google.com");
rd.forward(request, response);
%>
I want the browser to have http://localhost:8080/Google.jsp in the address bar and the google page in the window.
Can anyone help with this?
Thanks,
Doug