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

Inter-Servlet communication

 
Yas
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure I understand you correctly, but you may want to check out the RequestDispather object.
 
Paul Bourdeaux
Ranch Hand
Posts: 783
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic