How can you maintain servlet chaining?
Answer / bikash khuntia
you can maintain servlet chaining by using:
1. RequestDispatcher
2. include
Step 1: Set the request
request.setAttribute(key,value);
Step 2: Implimanting of RequestDispatcher
RequestDispatcher rsd = getServletContext().
getRequestDispatcher("Servletname");
Step 3: Forward or include the request and response by
rsd.forward(request,response);
rsd.include(request,response);
| Is This Answer Correct ? | 2 Yes | 3 No |
What are the mechanisms used by a servlet container for maintaining session information?
What do you mean by request dispatcher in servlet? Also explain its methods.
What are the types of servlet?
What are the different session tracking techniques?
When we don't write any constructor for the servlet, how does container create an instance of servlet?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
Define context initialization parameters.
What are the types of ServletEngines?
What are its drawbacks of cgi?
In which cases Destroy() is invoked?
What exactly are the functions of servlet?
How can we invoke another servlet in a different application?