aspose file tools
The moose likes Servlets and the fly likes When to use servlet include Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "When to use servlet include" Watch "When to use servlet include" New topic
Author

When to use servlet include

Pankaj Kumarkk
Ranch Hand

Joined: Apr 17, 2011
Posts: 108
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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: When to use servlet include
 
Similar Threads
request and translation time including
pageContext.include VS jsp:include VS RequestDispatcher.include
Urgent -RequestDispatcher.include and forward
include jsp in servlet
Problem with sendRedirect