response.sendredirect
843842Nov 20 2008 — edited Mar 22 2010Hi,
I am trying response.sendRedirect(URL); to forward to some external site. Now if the URL doesn't start with http:// it comes back with page not found e.g. if url is www.java.sun.com response.redirect does forward to the page if I use the full http://www.java.sun.com it works.
As I am trying to forward to some external site so my URL can be start with http://, ftp://, file:// but ftp:// and file:// doesn't work with send.redirect how can I forward to these sites from a servlet.
Thanks