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's the difference between servlets and applets?
What is the life cycle of a servlet?
When jsessionid is created?
Explain mvc pattern.
How would you create deadlock on your servlet?
How do you get the ip address of the client in servlet?
What is meant by Servlet? What are the parameters of service method?
What is life cycle of Servlet?
List the Different types of servlet?
What is lazy loading and what is Generic Servlet Class?
Which interface must be implemented by all servlets?
What are the types of protocols supported by httpservlet ?
Why is a constructor needed in a servlet even if we use the init method?
Differentiate between the web server and application server?
How can we invoke another servlet in a different application?