• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Communicating With A Remote Servlet

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

regards
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic