File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Communicating With A Remote Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Communicating With A Remote Servlet" Watch "Communicating With A Remote Servlet" New topic
Author

Communicating With A Remote Servlet

Vivian Ryder
Greenhorn

Joined: Nov 12, 2004
Posts: 20
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
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: 12835
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Communicating With A Remote Servlet