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 servlet container?

1087


What are the differences between forward() method and sendredirect() methods?

985


How can we upload the file to the server using servlet?

1026


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

905


What is the life cycle of a servlet?

1453


What is meant by cookies?

1042


What is servlet in tomcat?

1026


request parameter how to find whether a parameter exists in the request object?

977


Why doesn’t a servlet include main()? How does it work?

1119


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

2234


Why do we need a constructor in a servlet if we use the init method?

1007


What is the use of java servlet api?

991


Elucidate servlet attributes and its scope?

969


Why jsp is better than servlet?

979


Why is Servlet so popular?

1023