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 is java servlet session?

954


What’s the difference between forward() and sendredirect() methods?

1000


Explain servlet.

1027


What do you mean by cgi and what are its drawbacks?

964


Can we override destroy method in servlet?

975


Which method of the httpservletrequest object is used?

1070


What is the use of servletconfig interface?

1024


Which java framework is most popular?

1118


How is a servlet implemented in code?

1061


What is the procedure for initializing a servlet?

1021


Is servlet a server side scripting language?

1110


What is servlet mapping?

1003


Write a simple servlet program to print the contents of html.

1030


What is setattribute in servlet?

1121


Tell the new features added in servletrequest interface i.e. Servlet 2.4

1159