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 are different Authentication options available in Servlets.

1015


What do you mean by request dispatcher in servlet?

1079


What are its drawbacks of cgi?

1053


What are advantages of servlets over cgi?

1055


How can an existing session be invalidated?

1103


Why the concept of single thread model interface is used?

936


What is servletconfig?

981


Why is httpservlet declared abstract?

1069


Which exception is thrown if the servlet is not initialized properly?

981


Why the container loads server at the application startup and how?

1018


Should I override the service() method?

1047


How can a servlet be used to generate plain text instead of html?

911


What do you mean by a filter and how does it work?

905


What is servlet attributes and their scope?

1001


how the HTML data stored in web server?

2565