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
How to rectify errors in java servlet while compilation?
Differentiate between the web server and application server?
When should you prefer to use doget() over dopost()?
What are the type of protocols used in httpservlet?
Explain servlet events?
What is meant by servlet? What are the parameters of the service method?
What are the difference between RMI and Servlets?
Explain the difference between get and post method in servlet?
What are the functions of the servlet container?
What is the difference between sendredirect() and forward() in a servlet?
How do you communicate in between Applets and Servlets?
What are the supporting protocol by HttpServlet ?
How to get the current httpsession object?
Which httpsession object is used to view and manipulate information about a session?
What is servlet and its types?