I am writing a servlet that needs to interact with a servlet on a
remote server. When my servlet sends request to the remote servlet
that remote servlet will process the parameters and decide which web
page (there are 2 web pages available) to display. My problem is that
I need to know which web page is displayed so that my web application
can process accordingly. How can I know which web page the remote
servlet is redirecting me to?