What is the difference between RequestDispatcher and
sendRedirect?-
Answer Posted / hitler
The RequestDispatcher is executed in server side, request will
send to one server side program to another server side
programe.advantage of RequestDispatcher is executed fastly in
server side.,
The response.sendRedirct(..) is executed in browser side means
the request url will send to browser url , advantage of
sendRedirect(..) is can intract with one application to
another application.
depand on situvation we are used ..
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Which protocol will be used by browser and servlet to communicate
What are life cycle methods of a servlet?
Is dispatcher servlet a singleton?
What is the procedure for initializing a servlet?
Why is Servlet so popular?
Explain in brief the directory structure of a web application?
Is it possible to have a constructor inside the servlet?
Why filter is used in servlet?
What must be implemented by all servlets?
What is httpservlet class?
Can a jsp be called using a servlet?
What is servlet lazy loading?
How is a servlet implemented in code?
What are the types of an http request?
Explain the servlet context.