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

What is forward() and include() of servlets
RequestDispatcher interface?

Answer Posted / katamraju

Forward():By using forward() method of RequestDispatcher ,ew
can forward a request to a another resource(i.e
servlets,jsp,html....),at finally we can see only called
resource output(i.e second resource output )
For exm. we have two servlets,(servlet1 and servlet2) we are
forwarding request from servlet1 to servlet2, in this case
we can see only servlet2 output.
include():By using include() method of RequestDispatcher we
can forward a request from servlet12 to servlet2 ,in this
case we can see both outputs(i.e servlet1 and servlet2).

in both case single request and single response.

Is This Answer Correct ?    41 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cookie? Why is cookie used?

1053


Why servlet is faster than jsp?

1064


What are the steps that are required to handle the multi-threading?

1100


What is the use of request dispatcher interface?

1004


What are the key methods that are involved in processing of http servlets?

1099


What is the importance of init() method in Servlet ?

1076


What is the difference in between the httpservlet and generic servlet?

1114


Explain load on start-up and its importance?

1127


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

1074


What does the term localization refer to?

1102


Is java servlet still used?

1038


What are the important functions of filters?

1137


What do you mean by session tracking and also explain its techniques?

979


What are different ways for servlet authentication?

1098


What is the purpose of inter-servlet communication?

1091