• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

When to use servlet include

 
Pankaj Kumarkk
Ranch Hand
Posts: 112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to know when to use include(RequestDispatcher.include).

I understand that RequestDispatcher.include should be used when you want output from another resource(jSP/Servlet/HTML) to be merged in the current response. I understand the concept fine and i have also written code to see the behavior.
I am not able to think of a practical scenario where I would like to use include(within a servlet class).

I can see its applicability within a JSP and understand that.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic