wood burning stoves 2.0*
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
Author

Inter-Servlet communication

Yas
Greenhorn

Joined: Nov 18, 2005
Posts: 1
Hi,

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.....


Thanks,
yas
Bosun Bello
Ranch Hand

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


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Paul Bourdeaux
Ranch Hand

Joined: May 24, 2004
Posts: 783
Yas,

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
 
Don't get me started about those stupid light bulbs.
 
subject: Inter-Servlet communication
 
Similar Threads
servlet-applet methods
Applet and Server communication
Applet Servlet communication
swing application to servlets
interservlet communication