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 is content type in jsp?

947


How to disable session in jsp?

1031


What are the jsp tags?

934


What are jsp and servlets?

1010


What is the difference between jsp and thymeleaf?

1051


How we can use javascript with jsp pages?

1081


What is the include directive?

1020


How can we stop errors on display in a jsp page?

953


What is el in jsp?

980


What program opens a jsp file?

1102


What is jsp api?

1020


What is a jsp and what is it used for?

1050


Can we define a class inside a jsp page?

980


How can you include the results of another page?

979


What are the ways to insert java code into jsp page?

1086