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 are the features added in Servlet 2.5?

1194


What's the use of servletcontext?

1096


What are the kinds of http requests?

986


When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?

1028


What do you mean by web applications?

1118


Define the life cycle of a servlets.

1005


How are filters?

994


What is httpservlet and how it is different from genericservlet?

1037


What is called servlet container?

1037


What methodology can be followed to store more number of objects in a remote server?

2209


what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?

989


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

1088


What are life cycle methods of a servlet?

1006


What are the differences between servlet context vs servlet config?

1021


How to get the server information in a servlet?

1118