Friday, 28 February 2014

Difference between JSP FORWARD and SENDREDIRECT?

In FORWARD request, the request is sent to another resource on the server, without the client informed that a different resource is going to process the request. This process executes completely with in the server.

When a SENDREDIRECT method is invoked, it results the web server to return to the client (browser) indicating that a new URL should be requested. The browser needs to issue a new request and objects that are stored as request attributes before the redirect occurs will be lost. This extra round trip a redirect is slower than FORWARD. 

No comments:

Post a Comment

Thank you so much for providing your valuable feedback. I will will look into them and update my skills & technologies accordingly.