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

Answer Posted / senthilraj

Using thse methods we can redirect one page to another page.

Using the sendReirect() we can connect any URL from
outide the web application.
Using forward() we can connect URL only within
the application.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java servlet container?

512


What is general entity?

519


Is java ee and j2ee same?

504


Is java gui dead?

511


What is isv?

518






What is java used for in technology?

471


What do you understand by connector?

517


I am newbie in J2EE & looking for strong basic behind each concept as, Why do we use private access specifier before each variable of type property bcoz ultimately to access it outside the class we use public method as getter & setter ? If we use getter & setter to access it outside the class so better we make variable as public so that it is easily available outside of the class... Please guide me why do we use as private ????

5013


Which software is used for java?

479


Where can I find java developers?

520


What is container-managed transaction?

587


What is the container?

567


What is comment?

539


What is Connector architecture?

515


Who gave the name java?

473