wood burning stoves
The moose likes Servlets and the fly likes inter servlet communication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

inter servlet communication

Gopi Krrishna

Joined: Feb 15, 2006
Posts: 12
From servlet1(in serverA) i want to call another servlet "servlet2" that is present in another server(ServerB) and output of servlet2 should be printed along with output of servlet1 . can you please help me out?

SCJP 1.4
Deepak Bala

Joined: Feb 24, 2006
Posts: 6662

Open a URL connection to that servlet and read its output. Then format the output the way you want. What kind of data is the servlet B going to return ?

SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63547

This is essentially the same conversation going on your other post, so this one has been closed.

[Asking smart questions] [About Bear] [Books by Bear]
subject: inter servlet communication
It's not a secret anymore!