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...


How can you maintain servlet chaining?



How can you maintain servlet chaining?..

Answer / bikash khuntia

you can maintain servlet chaining by using:

1. RequestDispatcher
2. include

Step 1: Set the request

request.setAttribute(key,value);

Step 2: Implimanting of RequestDispatcher

RequestDispatcher rsd = getServletContext().
getRequestDispatcher("Servletname");

Step 3: Forward or include the request and response by

rsd.forward(request,response);

rsd.include(request,response);

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More Servlets Interview Questions

What are the mechanisms used by a servlet container for maintaining session information?

0 Answers  


What do you mean by request dispatcher in servlet? Also explain its methods.

0 Answers  


What are the types of servlet?

0 Answers  


What are the different session tracking techniques?

0 Answers  


When we don't write any constructor for the servlet, how does container create an instance of servlet?

2 Answers   Godrej, TATA,


What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?

0 Answers  


Define context initialization parameters.

0 Answers  


What are the types of ServletEngines?

1 Answers  


What are its drawbacks of cgi?

0 Answers  


In which cases Destroy() is invoked?

2 Answers  


What exactly are the functions of servlet?

0 Answers  


How can we invoke another servlet in a different application?

0 Answers  


Categories