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...

What is the difference between <jsp:forward> and
sendRedirect?

Answer Posted / prasanth setty

When you want to preserve the current request/response
objects and transfer them to another resource WITHIN the
context, you must use <jsp:forword>

If you want to dispatch to resources OUTSIDE the context,
then you must use sendRedirect. In this case you won't be
sending the original request/response objects, but you will
be sending a header asking to the browser to issue a
request to the new URL.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do cookies mean?

795


What is session management in jsp?

901


How can multiple submits due to refresh button clicks be prevented?

947


What is the need for jsp?

929


How to send data from jsp to jsp?

872


Give an example where you need jsp custom tag?

842


How jsp is compiled?

833


How are custom tags in jsp created?

884


What is the use of pagecontext in jsp?

840


Give the use of exception object.

879


What is scripting elements in jsp?

880


What is el?

874


What are the implicit, internal el jsp objects and their differences from jsp objects?

930


How do you pass control from one jsp page to another?

855


What are the jsp lifecycle phases?

941