Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you do a forward with a fully qualified address like http://...

Status
Not open for further replies.
Aug 21, 2004
4
0
0
US
Hey,

I learned that you can't use a forward(req,resp) when you are trying to go to a fully qualified address like http:\\cnn.com. I want to be able to do something like a forward so that I can use the req and resp parameters. However know I am doing a redirect call.

Does anyone know any other options I have?

Thanks,

JD
 
you can only forward to a URI in the same web application. if your forwarding URL is to the same application but in fully qualified address, you would have to strip out the HTTP schem, domain name, and context name from the URL. e.g. if the FQA is
then you will need to strip out " and just forward to "/folder1/folder2/mypage.jsp"

if however, the URL in FQA is to another web site, then you can only redirect it but not forward, by:

response.sendRedirect("
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top