Servlet Chaining? How do you do the Filtering in Servlets?
Answer Posted / k d rana
when request come from browser ,container send request and response object as a parameter to servlet , now when 2 or more servlet use same request object, means we forward existing request and response object to next servlet using
******
requestDispatcher rs=req.getrequestDispatcher("url of next servlet");
rs.forward(req,resp);
*******
method ,and so on ,thus we make chain of servlet to resolve same request using same request object
this is know as servlet chaning..
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is servlet name in web xml?
Can we get PrintWriter and ServletOutputStream both in a servlet?
What is servlet looping or chaining?
What do you mean by scope object and what are its types?
What's the advantages using servlets than using cgi?
What are the key methods that are involved in processing of http servlets?
What do you mean by singlethreadmodel interface?
What is the directory structure of a war file?
What is difference between get and post method?
Why doesn’t a servlet include main()? How does it work?
Explain web container.
Difference between get and post in java servlets?
What is pure servlet?
What are the supporting protocol by HttpServlet ?
What is servlet configuration?