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 |
Which application server is best for java?
What are cookies and how will you use them?
How can we perform any action at the time of deploying the project?
What is called servlet mapping?
What is the difference in between the httpservlet and generic servlet?
Is java servlet still used?
What are the advantages of Servlet over CGI?
What are the functions of an intercepting filter?
how do you maintain sessions in servlets?
What is the difference between the servlets and cgi programs?
What is context switching?
Why do we have servlet wrapper classes?