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

Why are jsp pages the preferred api for creating a web-based client program?

1058


How to forward a request to another source?

980


What are the elements of jsp?

964


How session is achieved in JSP?(once user logs out,if he press back button of browser he should not be allowed to same page)

2441


How many tags are there in jsp?

869


What is the advantage of using getProperty action, as compared to the accessor method?

3241


What are the benefits of pagecontext implicit object?

1226


What is full api?

930


Why is it not recommended to use script elements in jsp?

948


What is response sendredirect?

923


What is client scripting?

958


Is jsp page extensible true false?

929


How to include static files in a JSP page?

1002


How to include a jsp file in another jsp file?

906


What is an implicit object?

893