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

Difference between forward() method and sendredirect() method ?

582


What are its drawbacks of cgi?

566


What do you mean by web applications?

625


What do you mean by request dispatcher in servlet?

608


What do you mean by cgi in servlet?

627






What do you mean by httpservlet and how it is different from the genericservlet?

536


How can we upload the file to the server using servlet?

542


Difference between GET and POST?

705


What are the types of an http request?

581


What do you understand by mime type?

558


How many objects of a servlet is created?

788


How can I send user authentication information while making URL Connection?

541


What are the exceptions thrown by servlets? Why?

620


What is the difference between Servlets and Applets?

543


List the Different types of servlet?

579