What is forward() and include() of servlets
RequestDispatcher interface?

Answer Posted / nagababu

include() we have used include method for dispatch the
request, The browser will get the output generated by
Calling Servlet and Called Servlet.

forward() we have used forward method for dispatch request,
The browser will get the output generated by Called Servlet
and Calling Servlet will be discarded.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If some new data has entered the database, explain how can a servlet refresh automatically?

975


What is servlet instance?

736


What is session tracking?

887


If servlet receives multiple requests, how many objects will it create?

1050


What is difference between PrintWriter and ServletOutputStream?

984


How native code can be used in a servlet?

3718


Which event is fired at the time of session creation and destroy?

1092


Difference between get and post in java servlets?

748


explain the advantages of servlet life cycle?

734


What are the jobs performed by servlets?

763


Why servlet is faster than jsp?

752


What do you understand by mime type?

779


Define the servlet mapping.

702


What is the life cycle of a servlet?

1072


Explain the jar and war files in servlet?

798