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 |
when will cookie information destroy?
List out difference between a JavaBean from a Servlet?
What is preinitialization of a servlet?
Why filter is used in servlet?
How can the session in servlet be destroyed?
List some life cycle methods of a servlet.
How can we perform any action at the time of deploying the project?
What are common tasks performed by Servlet Container?
What is the difference between using getSession(true) and getSession(false) methods?
describe all about advanced java with presentation
How many ways are available to ger RequestDispatcher object?
What is load-on-startup in servlet?