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 servlet invoker?
What is servlet and its use?
Can a jsp be called using a servlet?
Can you explain in detail 'javax.servlet' package?
Write a servlet to upload file on server.
Is java servlet still used?
What is servletconfig?
Which exception is thrown if the servlet is not initialized properly?
What are the types of servlets? Explain
Explain the role of dispatcherservlet and contextloaderlistener.
How do you configure a centralized error handler in servlets?
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
What is the need of servlet filters?
How do I know if java is running on linux?
Write a command to get actual path of a servlet to the server?