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 is servlet life cycle?
What are the difference between RMI and Servlets?
What is httpservlet and how it is different from genericservlet?
How is a servlet implemented in code?
What is the difference between ExecuteUpdate and ExecuteQuery?
How do you pass the data from one servlet to another servlet?
What are sessions in servlets?
What is servlet api used for conneting database?
can i call init() method in destroy() method of servlset. ?
What is the difference between 2 types of servlets?
What is HTTP Tunneling?
What is the major difference between servlet and applet?