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 |
Can threads be used in Servelet?
what is the control flow in servlet when we send a request?
How to debug a servlet?
What is new in ServletRequest interface ? (Servlet 2.4)
What exactly are the functions of servlet?
How can the session in servlet be destroyed?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
What do you mean by singlethreadmodel interface?
How does Cookies work in Servlets?
Difference between jakarta tomcat and apache Tomcat?
How do you track a user session in servlets?
What is the difference between servlet and jsp?