What is the use of RequestDispatcher in servlet?
Answer Posted / gani kumar
In creating the web componets we find a requirement to reuse the components in different combinations avoiding the code duplication and have a proper reponsibility divison.
To meet this requirement in servlet envirnoment that is support a servlet acess another web resource like another servlet in the application,java servlet intrduces request dispatcher
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What do you mean by scope object and what are its types?
What is the need of session tracking in web application?
What is the procedure for initializing a servlet?
Which exception is thrown if the servlet is not initialized properly?
What do you mean by the servlet chaining?
What is the main purpose of java servlets?
Why do we use sendredirect() method?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
Why HttpServlet class is declared abstract?
What do you mean by session tracking and also explain its techniques?
What is a web application and what is it’s directory structure?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
What are the phases of a servlet life cycle?
What are the different methods involved in the process of session management in servlets?
Why the container loads server at the application startup and how?