Computer Science, asked by Shivamjain9437, 1 year ago

What is the difference between requestdispatcher.forward and response.sendredirect?

Answers

Answered by hs26102005
1

This is also called server side redirect. A RequestDispatcher forward() is used to forward the same request to another resource whereas ServletResponse sendRedirect() is a two step process. In sendRedirect(), web application returns the response to client with status code 302 (redirect) with URL to send the request.

Answered by himanshu1125
0

Answer:

Above answer is perfect

Similar questions