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 |
How values can be passed from HTML page to servlet?
What is meant by a web application
What is a servlet context object?
Explain the methods of request dispatcher in servlet?
What is the use of servletconfig interface?
can i call init() method in destroy() method of servlset. ?
What is Request Dispatcher?
What is the difference between an applet and a servlet?
15 Answers GCEW, Miracle Solutions,
Explain request dispatcher and its methods.
What is the need of servlet filters?
What is session tracking?
How do you find out what client machine is making a request to your servlet