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 differences between servlet context vs servlet config?

1144


What do you mean by filter in servlet?

1064


Why are servlets used?

1087


What is a servlet-to-servlet communcation?

1259


What is lazy loading and what is Generic Servlet Class?

1127


How do you get the ip address of the client in servlet?

1061


What is called Scriptlet?

1154


How will you pass values from HTML page to the servlet?

1102


Explain the servlet filter.

1041


What are the life cycle methods of the servlet?

1132


What is the servletconfig object?

1090


How are filters?

1084


Which http method is said to be non-idempotent and idempotent?

1095


What are the two important api's in for servlets?

1137


Who is responsible for writing a constructor?

1311