Hello All,
I am running in to a problem regarding which I would really appreciate some assistance. I am
using Visual Age for
Java 3.5 for my Java
IDE.
My problem is as follows:
1.) Browser issues a HTTP POST to a
servlet.
2.) within the servlet, I have to re-direct to
a COMPLETELY DIFFERENT URL which is outside of my servlet Engine itself, like as below.
RequestDispatcher.forward("http://www.cnn.com?param1=value1");
RequestDispatcher.forward SEEMS TO BE WORKING
ONLY with RELATIVE URI's . How do I re-direct my
POST with my ORIGINAL REQUEST PARAMETERS, TO A URL WHICH IS COMPLETELY OUTSIDE OF MY APPLICATION
FROM WITHIN MY SERVLET???.
I am currently trying to get it to work using
HttpUrlConnection object but I have not had success till now.
Thanks in Advance,
Sudharsan
RequestDispatcher.forward SEEMS TO BE WORKING ONLY WITH RELATIVE URI's