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

Can filter be used as request or response?

959


How do we translate jsp?

1048


What is the requirement of servlet config and servlet context implemented and how are they implemented?

994


what is servlet chaining?

1085


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

1137


What is the difference between sendredirect() and forward() in a servlet?

1012


What is the process to implement doget and dopost methods?

988


What is meant by Servlet? What are the parameters of service method?

1050


What are the servlet events?

1051


What is webservlet?

989


Can you refresh servlet in client and server-side automatically?

1065


Why do we need servlet filter?

1051


What do you mean by session tracking?

1207


What is war file?

1090


Difference between java beans & servlets?

1051