This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 12760
    
    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
 
Similar Threads
A REMOTE HTML PAGE
Sending data to an applet.
How does a servlet know when it is being redirected to the right page
Problem retrieving session value in jsp pagess
some java interview Questions