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

Describe servlet?

1045


How do we translate jsp?

1056


What are the steps involved in placing a servlet within a package?

1078


What's the use of servletcontext?

1146


What is servlet in web technology?

1054


How does java thread pool work?

1115


What is Servlet API used for connecting database?

1104


What are the various ways of session supervision in servlets?

1013


What's the difference between authentication and authorization?

1145


What is servlet name in web xml?

995


What is httpservlet and how it is different from genericservlet?

1103


What are all the advantages of servlet over cgi?

1090


Can we refresh servlet in client and server side automatically?

1058


What is servlet container?

1118


What do you mean by cgi in servlet?

1081