141 Difference between forward, include methods of reqeustDispatcher in servlet | advance java

Описание к видео 141 Difference between forward, include methods of reqeustDispatcher in servlet | advance java

#Servlet #interview #question: What is the #difference #between #reqeustDispatcher.#forward(-,-) and #requestDispatcher.#include(-,-) #method? (#Servlet #Chaining/#Servlet to #Servlet #communication) advance java servlet programming tutorial

reqeustDispatcher.forward requestDispatcher.include
----------------------------- -------------------------------
1)Performs forwarding request 1)Performs including response
mode of servlet chaining. mode of servlet chaining.

2)HTML output of source 2)HTML output of source program
program will be discarded. will not be discarded.

3)Final response contains 3)Final response conatins the
only HTML output of HTML output of source and
destionation program. destination programs.

4)Useful for error-page 4)Useful for making/including
configuration. the output of common logics as
reusable outputs.

Комментарии

Информация по комментариям в разработке