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 is servlet invoker?

602


What is servlet and its use?

630


Can a jsp be called using a servlet?

586


Can you explain in detail 'javax.servlet' package?

551


Write a servlet to upload file on server.

605






Is java servlet still used?

593


What is servletconfig?

547


Which exception is thrown if the servlet is not initialized properly?

594


What are the types of servlets? Explain

678


Explain the role of dispatcherservlet and contextloaderlistener.

610


How do you configure a centralized error handler in servlets?

537


How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

2923


What is the need of servlet filters?

544


How do I know if java is running on linux?

607


Write a command to get actual path of a servlet to the server?

541