Thanks Ulf, actually i have requirement where i have to take a user from one jsp hosted on one webserver server to another jsp which is on different web server. I am not sure if it could be done using response.sendRedirect
A JSP can submit to any server you want, not just to the server where it originated. You could submit to the 2nd server, and then have the response do a redirect back to the 1st server.
Or does the 1st server also need the form values? In that case, you might consider using the HttpUrlConnection class to transfer them from the 1st to the 2nd server.
Or does the 1st server also need the form values? In that case, you might consider using the HttpUrlConnection class to transfer them from the 1st to the 2nd server.
Yes, i think i got it now, would be good if you share a sample code using HttpUrlConnection