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
Can you send an authentication error from a servlet?
Can a jsp be called using a servlet?
What are all the protocols supported by httpservlet?
What is called Session Tracking?
How to upload a file to the server using servlet?
explain the advantages of servlet life cycle?
Explain the working of service() method of a servlet.
What is http servlet? Explain with the help of an example.
Why is http protocol called as a stateless protocol?
Difference between java beans & servlets?
What is the difference between Difference between doGet() and doPost()?
What do you mean by a filter and how does it work?
What is servlet name in web xml?
Which event is fired at the time of setting, getting or removing attribute from application scope?
Why do we need servlet filter?