tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Byron" <bby...@radit.com>
Subject Forward to different website.
Date Thu, 04 Oct 2001 23:11:12 GMT
I need to forward to a different website entirely from inside my servlet.

I tried using the following code:
    RequestDispatcher rd = getServletContext().getRequestDispatcher("//otherwebsite.com/page.html");
    rd.forward(request, response);

But it didn't seem to want to forward anywhere.  I was able to successfully
forward inside my own site though.  But I do need to forward to a different
site.  Is there any way for me to do this?

I am in "http://websiteone.com/someservlet" and want to forward back to
"http://anotherwebsite.com/somepage.html".

Thank You,
Bob Byron


Mime
View raw message