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
If some new data has entered the database, explain how can a servlet refresh automatically?
What is servlet instance?
What is session tracking?
If servlet receives multiple requests, how many objects will it create?
What is difference between PrintWriter and ServletOutputStream?
How native code can be used in a servlet?
Which event is fired at the time of session creation and destroy?
Difference between get and post in java servlets?
explain the advantages of servlet life cycle?
What are the jobs performed by servlets?
Why servlet is faster than jsp?
What do you understand by mime type?
Define the servlet mapping.
What is the life cycle of a servlet?
Explain the jar and war files in servlet?