What is the use of RequestDispatcher in servlet?

Answer Posted / abhishek taneja

request dispatcher is used to transfer the value attributes
to servlets and jsps. the request diapatcher is use the
relative url and there is one more thing in request
dispatcher is (non -idempotant) means when u will do the
multiple submits then it will update the database again and
again so to avoid the multiple submits use the (Synchronizer
token pattern,PSG pattern,or sendRedirect)

Is This Answer Correct ?    29 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's the difference between servlets and applets?

745


What is the life cycle of a servlet?

1077


When jsessionid is created?

758


Explain mvc pattern.

758


How would you create deadlock on your servlet?

822


How do you get the ip address of the client in servlet?

742


What is meant by Servlet? What are the parameters of service method?

796


What is life cycle of Servlet?

789


List the Different types of servlet?

775


What is lazy loading and what is Generic Servlet Class?

809


Which interface must be implemented by all servlets?

1021


What are the types of protocols supported by httpservlet ?

917


Why is a constructor needed in a servlet even if we use the init method?

798


Differentiate between the web server and application server?

753


How can we invoke another servlet in a different application?

907