Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Is it possible to have a constructor inside the servlet?

1012


Can we use the constructor, instead of init(), to initialize servlet?

1099


What do you mean by cgi in servlet?

1073


What must be implemented by all servlets?

1096


What are some advantages of storing session state in cookies?

1015


Which is the methods of generated servlet?

1220


What are the types of servlets? Explain

1258


What is the difference between forward () and sendredirect () functions in servlet? Explain

1032


How the servlet is loaded?

1073


What is the procedure of invoking different servlet in a different application?

1014


Explain the custom jsp tags and the beans.

1061


What is java servlet?

1047


What is difference between GenericServlet and HttpServlet?

1163


Explain jsessionid?

1032


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

1004