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 do you understand by j2ee?

481


What is business method?

567


What should a junior java developer know?

479


i want test pattern of zylog company and some examples also

2298


What is event and listener in java?

428






What is java servlet container?

510


What is japplet in java?

515


Is class a data type in java?

492


Why java is oop language?

550


What do you understand by a thin client?

508


What do you mean by the deployment descriptor?

511


What is j2ee component?

507


What is layout in java?

469


What is difference between javac and java?

507


In DAO we are writting sql queries , how it is possible with creating and closing database connections.

1538