Senin, 02 Januari 2017

How Data Redirection works in Servlets

sendRedirect() is executed on client side, whereas forward() is executed on server side. sendRedirect() works only with HTTP, whereas forward() works with any protocol. sendRedirect() takes two request and one response to complete, where as only one call is consumed in the case of the forward() method. sendRedirect() can be used to redirect a user to a resource on any server on the web. Whereas forward() can be used to redirect a user to a resource on the same server where the application or the page resides.   Following example demonstrates redirecting a user using sendRedirect() and forward() methods:  

The post How Data Redirection works in Servlets appeared first on Coding Security.


How Data Redirection works in Servlets
read more

Tidak ada komentar:

Posting Komentar