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 are the two important api's in for servlets?
How can the referrer and the target urls be used in servlet?
What do you mean by annotations in servlet?
What do you mean by web applications?
How will two or three servlets interact or communicate with each other?
Explain the difference between servletconfig and servletcontext in servlet?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
What are the functions of an intercepting filter?
Why filter is used in servlet?
What is the use of servletconfig interface?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
What are all the advantages of servlet over cgi?
Is servlet a controller?
Explain servlet life cycle?
How the servlet is loaded?