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
What is a servlet-to-servlet communcation?
Why do you use session tracking in httpservlet?
Given the request path below, which are context path, servlet path and path info?
What is servlet attributes and their scope?
Who is responsible to create the object of servlet?
Describe some assignments that are executed by servlet container?
how many jsp scripting elements are there and what are those?
Explain the servlet context.
What are the different ways we can maintain state between requests?
Describe in brief RequestDespatcher?
What are session variable in servlets?
What do you mean by interservlet communication?
What is cookies in servlet with example?
When a servlet accepts a call from a client, it receives two objects. What are they?
How does java thread pool work?