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 sendRedirect() and forward()?
in what situations do we have to use send redirect()
instead of forward().

Answer Posted / aravind

forward() is a action element in jsp. it is used to pass
ctrl from current page to another jsp page and it is a
method in jsp.

send redirect() is a method in servlet.
there are two methods used. as
HttpServletResponse.encodeReDirctURL().which takes String
represents a redirction url.next sendredirect() method.
which takes the String returned from the
encoderedirectString() and send it back to the client for
redirection

Is This Answer Correct ?    8 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why java is interpreted language?

848


Why is java used?

910


What is the description for expression element?

1002


What are the main components of the j2ee application?

914


What do you mean by the component contract?

970


What is credentials?

899


What is application client?

979


Is java more difficult than c++?

965


What is element?

935


What should a junior java developer know?

875


What is the use of method save()?

952


What is java api for xml processing (jaxp)?

959


What is ejb container provider?

872


What is the build file?

917


What is japplet in java?

987