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 / franklin

Include:It helps us to include the contents of some other
file in a JSP

jsp:include-it includes the contents during the run time

forward:will send the same request to the new server.Client
will not know that he s redirected to the new page as
forwarding will take place at the server end.

sendRedirect:will not send the same request to the
server.Client will know that he s redirected to the other
site.

Is This Answer Correct ?    27 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which protocol will be used by browser and servlet to communicate

1106


What are the exceptions thrown by servlets? Why?

1246


Who is responsible for writing a constructor?

1310


What are sessions in servlets?

1111


What is servlet in web technology?

1094


What is the importance of init() method in Servlet ?

1128


Why are servlets used?

1086


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

1214


What is session tracking?

1266


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

1079


What is servlet initializer?

1034


Can servlet have a constructor ?

1100


What are some advantages of storing session state in cookies?

1081


What is the use of httpservletrequestwrapper?

1147


What is servlet container. how it works?

1174