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
When servlet is loaded?
How to read request headers from servlets?
What is the difference between Server and Container?
What is a servlet-to-servlet communcation?
What are the different methods involved in generic servlet?
What is ServletContext object?
Elucidate servlet attributes and its scope?
Why do we need a constructor in a servlet if we use the init method?
What are the different ways we can maintain state between requests?
What is called servlet container?
What are the different session tracking techniques?
What are the advantages of cookies?
What are the mechanisms used by a servlet container for maintaining session information?
What are the common methods that are included in the http servlet class?
Explain url encoding?