Friday, 27 February 2015

Differences Between Forwarding and Redirection

Forwarding
Redirection
While forwarding, there is no intimation given back to the client.
While redirecting, there will be an intimation given back to the client.
Only one pair of request and response objects are created.
Minimum two pairs of request and response objects are created by the container.
Automatically the data is also forwarded.
Only control is redirected, but data is not transferred.
Forwarding is only possible within the server only.
Redirecting is possible within the server and across the servers.
The destination resource must be java enabled resource.
The destination resource may be java enabled resource (or) it can be non-java enabled resource.

No comments:

Post a Comment