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 the use of servlet wrapper classes?

1121


What is the need of session tracking in web application?

976


What is the difference between portlet and servlet?

938


Explain the features are in servlet 3?

1015


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

1009


What is the difference between a generic servlet and http servlet?

938


Why do you use session tracking in httpservlet?

1071


Is java servlet still used?

994


What is the use of servletconfig interface?

992


A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?

1027


What are the types of protocols supported by httpservlet ?

1166


What is cookie? Why is cookie used?

1007


How servlet is created?

1112


How do you load an image in a Servlet?

1121


Explain in brief the directory structure of a web application?

1054