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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by deployment descriptor?

1055


Define the servlet mapping.

1049


What is new in ServletRequest interface ? (Servlet 2.4)

1009


What is the use of send redirect () method?

1085


What is servlet? Explain

1061


what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?

1042


Elucidate servlet attributes and its scope?

1012


What is http servlet?

1058


Write all the phases defined in servlet life cycle?

1148


Explain the lifecycle of a servlet?

968


When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?

1056


What is servlet name in web xml?

993


What is the difference between the include() and forward() methods?

1081


Is dispatcher servlet a singleton?

1011


What is pure servlet?

1205