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 called servlet mapping?
What are the life cycle methods of the servlet?
What is http servlet? Explain with the help of an example.
Can we override servlet service method?
How to read request headers from servlets?
Can we use threads in Servlets?
Can we fetch the attributes related to a servlet on a different servlet?
What’s the difference between genericservlet and httpservlet?
What is servlet initializer?
What are the disadvantages of storing session state in cookies?
What is the purpose of requestdispatcher interface?
What are the advantages of servlets over traditional cgi?
How we can call a jsp from the servlet?
How can we implement a jsp page?
What is the use of servlet context?