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 the difference between CGI and Servlet?
What is the difference between RequestDispatcher and sendRedirect?-
Explain is servlet mapping?
List some life cycle methods of a servlet.
What are different types of SessionTracking?
Explain the difference between GET and POST methods?
Name the webserver that is used to run Servlets?
How to get the server information in a servlet?
Can we get PrintWriter and ServletOutputStream both in a servlet?
what is SSL?
Why is Servlet so popular?
How to notify an object in session when session is invalidated or timed-out?