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 a servlet context?
Why is Servlet so popular?
When jsessionid is created?
What is the importance of init() method in Servlet ?
Whats the advantages using servlets over using CGI?
Define declaration.
What is api in servlet?
What is Request Dispatcher?
How the servlet is loaded?
How many objects of a servlet is created?
Why the container loads server at the application startup and how?
Given the request path below, which are context path, servlet path and path info?
How we can call a jsp from the servlet?
What is life cycle of Servlet?
how many jsp scripting elements are there and what are those?