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
How can the session in servlet be destroyed?
How the JSP file will be executed on the Server side?
What is the difference between the include() and forward() methods?
Write a servlet to upload file on server.
Can you use javascript in servlets?
How can a servlet be used to generate plain text instead of html?
Who is responsible to create the object of servlet?
What is difference between get and post method?
How can the session in servlet can be destroyed?
What is context in servlet?
Why filter is used in servlet?
What do you mean by filter in servlet?
What is api in servlet?
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255
Explain the jar and war files in servlet?