Can anyone tell me, In which situation we are using "forward()" and which situation we are using "SendRedirect()" in servlet?
Printable View
Can anyone tell me, In which situation we are using "forward()" and which situation we are using "SendRedirect()" in servlet?
Hi,
In web application, if you want to move page within current web application that time you choose forward() method,
else you want to move different web application page, you use sendredirect()
bye
Thanks for the quick reply sampath...
Hi All This is Sheetal.A I am Looking for some faq's about java,jsp servlets....
what sampath told i right ,but performance wise forward() is good because , noneed to create new req,resp objects nad there is no need of two network round trips between client &server