What is the use of RequestDispatcher in servlet?
Answer Posted / pramod p deore
RequestDispatcher is used to transfer the control to other
JSP or servlet.
RequestDispatcher rd= request.getRequestDispatcher
("result.jsp);
rd.forward (request, response);
| Is This Answer Correct ? | 9 Yes | 6 No |
Post New Answer View All Answers
What is SingleThreadModel interface?
Which event is fired at the time of project deployment and undeployment?
When jsessionid is created?
How can a servlet be used to generate plain text instead of html?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
What is war file?
What are the benefits of using servlet over cgi?
Which interface must be implemented by all servlets?
Why servlet is faster than jsp?
What are the different types of servlets?
What do you mean by the servlet chaining?
Why are servlets used?
What are the uses of servlet and what is servlet chaining?
What is called Scriptlet?
What is the main purpose of java servlets?