Answer Posted / 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 |
Post New Answer View All Answers
Describe servlet?
How do we translate jsp?
What are the steps involved in placing a servlet within a package?
What's the use of servletcontext?
What is servlet in web technology?
How does java thread pool work?
What is Servlet API used for connecting database?
What are the various ways of session supervision in servlets?
What's the difference between authentication and authorization?
What is servlet name in web xml?
What is httpservlet and how it is different from genericservlet?
What are all the advantages of servlet over cgi?
Can we refresh servlet in client and server side automatically?
What is servlet container?
What do you mean by cgi in servlet?