> Hi All,
> I have a servlet which works as a web service. In a one scenario, I
[quoted text clipped - 4 lines]
> Thank you
> Janaka
You could send a redirect.
http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpServletResponse.htm
l#sendRedirect(java.lang.String)
Or do you want to do a proxy? Proxy would be more difficult.
Janaka Perera - 07 Nov 2007 18:02 GMT
> http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpServletR...)
>
> Or do you want to do a proxy? Proxy would be more difficult.
Actually what i wanted to do is calling the other server in the doPost
or doGet method and converting them into the HttpServletResponse. I
finally managed to do it using org.apache.commons.httpclient library.
Transfered the headrers and the body using some logic in the doGet
method to the HttpServletResponse from the #rd party server response.
Thank you very much for your help. sorry if my explanation earlier was
not clear.