Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Communicating With A Remote Servlet

 
Vivian Ryder
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't you explore RMI Option which will solve your problem.

regards
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic