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?
Thank you
Vivian
Sai Krishna Chitta
Greenhorn
Joined: Oct 22, 2004
Posts: 12
posted
0
Why don't you explore RMI Option which will solve your problem.
regards
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12271
1
posted
0
How can I know which web page the remote servlet is redirecting me to?
I interpret your requirement as - you want to create a HTTP request to a servlet on a remote system and then follow up the redirect if any just like a browser would. The HttpClient toolkit from the Apache Software Foundation Commons is a good bet for this sort of thing. Bill