0% found this document useful (0 votes)
37 views1 page

Difference Between Senddirect and Request Dispatcher

sendDirect() redirects the client's browser to make a new request for the resource with a different URL, while request dispatching gets the resource in the same request without changing the URL. sendRedirect() works on the response object after the original request is processed, while request dispatching works on the request object before processing the original request.

Uploaded by

omkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views1 page

Difference Between Senddirect and Request Dispatcher

sendDirect() redirects the client's browser to make a new request for the resource with a different URL, while request dispatching gets the resource in the same request without changing the URL. sendRedirect() works on the response object after the original request is processed, while request dispatching works on the request object before processing the original request.

Uploaded by

omkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Difference between sendDirect() and Request Dispatcher.

- redirection makes the client(browser) create a new request to get to the resource, the user can
see the new URL while request dispatch get the resource in same request and URL does not
changes.

- sendRedirect() works on response object while request dispatch work on request object.

You might also like