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

Difference between Include, Forward and sendRedirect in
Servlet?

Answer Posted / saikiran

main difference between include forwared is
pathelements:
-------------
pathelements are not available to the sended servlet
that are to be available to the other servlet in the c
ase of forward.
incase of include both pathelements are available to
the both servlets.
Response Generation:
--------------------
in the response generation forward forwarded servlet
message will be printed
eg:
two servlets ser1 and ser2
ser1 forwarded to ser2 then ser2 messages will be
displayed not by ser1
in case of include both of them

Is This Answer Correct ?    8 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the directory structure of web application?

990


What are the uses of servlet and what is servlet chaining?

1096


How servlets are deployed in java?

1028


What is a generic servlet?

958


Can we use the constructor, instead of init(), to initialize servlet?

1099


Is java servlet still used?

1056


How does tomcat servlet container work?

1084


What is meant by cookies?

1082


Write the code to get the server information in servlet.

1068


What is the procedure for initializing a servlet?

1041


Why is httpservlet declared abstract?

1126


What is java servlet?

1057


What are the functions of Servlet container?

1121


Write a servlet to upload file on server.

1105


Differentiate between the get and post method

1067