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 layout manager in java?

458


What is ejb jar file?

463


What is isv?

507


Define the struts in the j2ee framework?

494


What are different modules in spring?

520






What is tomcat in j2ee?

474


How is java development environment setup?

470


What is javafx java?

518


What does web module contain?

518


What is the ear file?

532


What is java 2 platform, micro edition (j2me)?

513


What are the technologies a java developer must know?

471


Difference between load and get method?

550


How java is reliable?

474


What is home handle?

523