What is the difference between RequestDispatcher and
sendRedirect?-
Answer Posted / kalyan
RequestDispatcher() method is executed in server-
side,requestdispatcher method is used to transfer the one
page to another serverside page .In this method we can use
the include() and forward() methods .
SendRedirect () method is directly into the client side ....
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Should I override the service() method?
Which HTTP method is non-idempotent?
Explain the role of dispatcherservlet and contextloaderlistener.
How to get the server information in a servlet?
Explain the war file?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
What is the use of httpservletrequestwrapper?
How the typical servlet code look like ?
What are the important functions of filters?
Difference between doget and dopost?
What is SingleThreadModel interface?
How forward () method is different from send redirect () method?
What exception should be thrown when servlet is not properly initialized?
What is the difference between servlet and jsp?