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
What is cookie? Why is cookie used?
Explain the difference between servlet and cgi?
What are different Authentication options available in Servlets.
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
What is the workflow of a servlet?
Tell us something about servletconfig interface.
What is MIME Type?
How do you deal property files in servlet?
Explain web application directory arrangement?
What do you mean by a filter and how does it work?
What is lazy loading and what is Generic Servlet Class?
What is new in ServletRequest interface ? (Servlet 2.4)
Why is a constructor needed in a servlet even if we use the init method?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
What are common tasks performed by Servlet Container?