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
Explain servlet.
How we can get ip address of client in servlet?
What is the type of method for sending request from http server?
What are the functions of the servlet container?
What is ServletContext object?
What is a servlet?
What are the servlet events?
What are the differences between the servletconfig interface and the servletcontext interface?
What is difference between GenericServlet and HttpServlet?
Name the different ways of session tracking.
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
Are Servlets Thread Safe? How to achieve thread safety in servlets?
What is the servlet?
What is ServletConfig object?
If a servlet is not properly initialized, what exception may be thrown?