File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "Inter-Servlet communication" Watch "Inter-Servlet communication" New topic

Inter-Servlet communication


Joined: Nov 18, 2005
Posts: 1

How can we enable communication between a single thread model servlet and user defined servlet ?

can anyone suggest me any useful resources or references for this.....

Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Not sure I understand you correctly, but you may want to check out the RequestDispather object.

So much trouble in the world -- Bob Marley
Paul Bourdeaux
Ranch Hand

Joined: May 24, 2004
Posts: 783

First and foremost, welcome to JavaRanch. Please change your name to conform with the JavaRanch Naming Policy.

Second, you should not be using the single thread model anymore. It has been depreciated. (And in my opinion, was never very useful anyway - although some notable people in this forum usually disagree with me )

Lastly, the previous poster was correct. You can use the RequestDispatcher to forward the request onto another servler, or temporarily hand off control to another servlet via include.

“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
I agree. Here's the link:
subject: Inter-Servlet communication
It's not a secret anymore!