Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Serlet calls another servlet

 
Brendan Kennedy
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you call one servlet from another without using a href or
anything like that, i.e. one servlet does a search, gets some
results back and then calls another servlet to display them.
Thanks,
Brendan
 
sandy gupta
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the Request Dispatcher to fwd the request to the other servlet or use the response.sendRedirect method
Both will work
Sahil
p.s: Careful about the fall-through nature of the 2 calls
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic