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’s the use of the servlet wrapper classes??
What is the use of servlet wrapper classes?
What is the dispatcher servlet?
What do you understand by mime type?
What are the different methods involved in generic servlet?
Can servlet have a constructor ?
How can an existing session be invalidated?
Can we use threads in Servlets?
What’s the difference between genericservlet and httpservlet?
What are the different ways we can maintain state between requests?
Can you create a deadlock condition on a servlet?
What is servlet initializer?
What is the process for chaining servlet?
What is the difference between Difference between doGet() and doPost()?
What is called a session?