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
Define context initialization parameters.
How printwriter is different from servletoutputstream?
How can a servlet be used to generate plain text instead of html?
How can you create a session in servlet?
What is webservlet?
What do you mean by chaining in servlet?
When a client request is sent to the servlet container, how does the container choose which servlet to invoke?
How can you use a servlet to generate a plain text instead of html?
How can you run a servlet program?
What do you mean by mime type?
Which httpsession object is used to view and manipulate information about a session?
How to make sure a servlet is loaded at the application startup?
What do you mean by url pattern in servlet?
What is servlet name in web xml?
Explain request dispatcher and its methods.