What is the use of RequestDispatcher in servlet?
Answer Posted / malyadri b
RequestDispatcher
rd=ServletContext.getRequestDispatcher("url of resource");
rd.forward(req,res);----used to forward to another resource.
rd.include(req,res);----used to include other resource.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is difference between GenericServlet and HttpServlet?
What are the disadvantages of storing session state in cookies?
How do we translate jsp?
How can a servlet be used to generate plain text instead of html?
Can you refresh servlet in client and server-side automatically?
What is the use of servlet context?
Can we override servlet service method?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
What is difference between server and servlet?
What is servlet mapping?
What are the various ways of session supervision in servlets?
What is getservletcontext?
How will you pass values from HTML page to the servlet?
What is servlet and its advantages?
What are the differences between servlet context vs servlet config?