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
Is it possible to have a constructor inside the servlet?
Can we use the constructor, instead of init(), to initialize servlet?
What do you mean by cgi in servlet?
What must be implemented by all servlets?
What are some advantages of storing session state in cookies?
Which is the methods of generated servlet?
What are the types of servlets? Explain
What is the difference between forward () and sendredirect () functions in servlet? Explain
How the servlet is loaded?
What is the procedure of invoking different servlet in a different application?
Explain the custom jsp tags and the beans.
What is java servlet?
What is difference between GenericServlet and HttpServlet?
Explain jsessionid?
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