What is the difference between RequestDispatcher and
sendRedirect?-
Answer Posted / sitaram
RequestDispatcher: Serverside redirect with same request
and response objects.
SendRedirect: Client-side redirect with new request and
response objects.
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
What is the default http method in the servlet?
Explain is servlet mapping?
What are the servlet events?
How can you run a servlet program?
What are the functions of an intercepting filter?
What are the annotations used in servlet 3?
What is a generic servlet?
Why the container loads server at the application startup and how?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
What are the phases of a servlet life cycle?
Whether we can get deadlock situation in servlets?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
What’s the difference between genericservlet and httpservlet?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
What are the mechanisms used by a servlet container for maintaining session information?