On Fri, 5 Oct 2001, menonv wrote:

> Doesn't the request dispatcher work within the context of the
> application/container? Shouldn't you be using sendRedirect instead?

correct.

> 
> > -----Original Message-----
> > From:       Bob Byron [SMTP:[EMAIL PROTECTED]]
> > Sent:       Friday, October 05, 2001 12:11 AM
> > To: [EMAIL PROTECTED]
> > Subject:    Forward to different website.
> > 
> > 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
> 
> 
> Disclaimer
> 
> This communication together with any attachments transmitted with it ('this E-mail') 
>is intended only for the use of the addressee and may contain information which is 
>privileged and confidential. If the reader of this E-mail is not the intended 
>recipient or the employee or agent responsible for delivering it to the intended 
>recipient you are notified that any use of this E-mail is prohibited. Addressees 
>should check this E-mail for viruses. The Carphone Warehouse Group PLC makes no 
>representations as regards the absence of viruses in this E-mail. If you have 
>received this E-mail in error please notify our ISe Response Team immediately by 
>telephone on + 44 (0)20 8896 5828 or via E-mail at [EMAIL PROTECTED] Please then 
>immediately destroy this E-mail and any copies of it.
> 
> Please feel free to visit our website: http://www.phonehouse.com
> 
> 

Reply via email to