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 understand by url rewriting?

901


Explain the difference between servletconfig and servletcontext in servlet?

989


How to get the actual path of servlet in server?

1170


List out difference between a JavaBean from a Servlet?

968


What is servlet and its use?

1047


What is the life cycle of a servlet?

1424


What are the objects involved when a servlet receives a call from client?

964


What is difference between get and post method?

1006


When should you prefer to use doget() over dopost()?

1085


What is java servlet?

1009


Describe servlet?

982


Can you send an authentication error from a servlet?

925


Can you call a jsp from the servlet?

966


What's the servlet interface?

1030


What is the difference between CGI and Servlet?

1010