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

sendRedirect() means it's client side redirect at that time
new parameters can be added.(i.e HttpRequest, HttpResponse)

forward() meand it's server side redirect at that time same
parameters can be used.


forward() can be used forwarding the request from one
servlet to jsp.(i.e with in the container).

redirect() can be used redirecting the one jsp to another
jsp(i.e different containers).

Is This Answer Correct ?    56 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why java is oop language?

880


What is the best java compiler?

822


How will you explain load() and get() methods?

918


What are the advantages of object-relational mapping (orm)?

822


public class ActionSearchBean extends GenericSearchBean { @Override public String search() { data.setRowCount(null); if(data.getRowCount()==0){ data.getNoRecordFound().setRendered(true); data.getDataScroller().setRendered(false); } return "searchAction"; } @Override public String clear() { data.setRowCount(null); if (data.getRowCount() > 0){ data.getNoRecordFound().setRendered(false); data.getDataScroller().setRendered(true); }else{ data.getNoRecordFound().setRendered(true); data.getDataScroller().setRendered(false); } data.setModel(new ActionDTO()); data.setRowCount(null); return "searchAction"; } } what is the purpose of @Override ...what will do @Override here ?

2432


What is the use of jit compiler in java?

844


How many types of objects are there in java?

803


Which is latest technology in java?

875


What is j2ee called now?

893


Why awt is used in java?

842


Is java important for my computer?

829


What is ejb module?

884


What is java api for xml processing (jaxp)?

913


What is j2ee and j2se?

883


Is java procedural or object oriented?

836