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

Answers were Sorted based on User's Feedback



What is the difference between sendRedirect() and forward()? in what situations do we have to use s..

Answer / fateh

the main difference is that forward() do not save the
information while sending to the client but on the other
hand sendRedirect() saves the information while redirecting
to the other page.

Basically, sendRedirect() is used to redirect ot the error
page and forward() is a request dispatcher method to forward
request to the new page. So, if we are talking in this
context sendRedirect() is faster than forward(). According
to he above mentioned concept, forward() is faster than
sendRedirect() but if we are using sendRedirect() to send to
the error page it is faster.

Is This Answer Correct ?    3 Yes 6 No

What is the difference between sendRedirect() and forward()? in what situations do we have to use s..

Answer / sateesh.b

sendRedirect() can be used to send a request with in the
server or in other server.
forward() can be used to send request in the same server.

Is This Answer Correct ?    8 Yes 14 No

What is the difference between sendRedirect() and forward()? in what situations do we have to use s..

Answer / maa

yyyy ddddd ggg

Is This Answer Correct ?    2 Yes 14 No

Post New Answer

More J2EE Interview Questions

what is the difference between application server and web server?

5 Answers   Cegonsoft, IBM,


Name the Implicit variable which is used to access other implicit objectes present in JSP.

7 Answers   AZTEC,


Write a program to display numeric value in reverse order. Ex: I have given a number like 7584, It should display in reverse order like 4857.

6 Answers  


How long does it take to master java?

0 Answers  


Is java is fully object oriented?

0 Answers  


Explain the j2ee tiers.

0 Answers  


What is the latest technology used in java?

0 Answers  


What is j2ee stack?

0 Answers  


What is application client module?

0 Answers  


How do you make a class immutable in java?

0 Answers  


How is java development environment setup?

0 Answers  


when i m calling java for web browser . so browser it's not support. show error in browser: internal error occur. java.lang.NoClassDefFoundError. will you give me solution why it's not starting browser.? is there any consult with .net framework2.0?

0 Answers  


Categories