What is the difference between Forward and Redirect? - ProProfs Discuss
Advertisement

What is the difference between Forward and Redirect?

Asked by Jessica , Last updated: Apr 17, 2024

+ Answer
Request
Question menu
Vote up Vote down

3 Answers

A. Lucius

A. Lucius

Being a content writer, I keep looking for fresh and unique content and I think Discuss is my go to every time

A. Lucius
A. Lucius, Senior Content writer, Diploma in Literature, Dover, Delaware

Answered Dec 10, 2020

The forward technique forwards a request from one servlet to an alternative resource in a web application, and this resource can be an extra servlet, JSP page, or HTML file. The redirect method, on the other hand, redirects to a different application. This scenario is not possible with the forward method.

It is often necessary to shift control between different properties or JSP’s in web-based systems or applications. The forward action is explicitly utilized to register so that you can place an order from a site. The redirect method is used to forward HTTP requests, but in contrast, it is a two-step process where the redirect occurs at the client-side to a different function altogether.

upvote downvote
Reply 

F. Lopez

F. Lopez

F. Lopez
F. Lopez

Answered Aug 06, 2020

With web-based systems or applications, it is often necessary to shift control between different resources. For example, if you go to a site, you generally have to register first before you can go to the next step. If you are not yet registered into the system, you may have to assign control over to the form that is accountable for the registration process.

With web-based systems or applications, it is often necessary to shift control between different
The forward action is explicitly used for this task. It is applied to forward the request from one place to another. Redirect is also applied to send HTTP requests, but unlike a forward, it’s a two-step process in which the redirect occurs at the client-side to a different application altogether. The redirect method takes the user to a new URL. It may be slower than a forward, but it is reliable. The redirect has to go through the browser and then wait for the browser to make a new HTTP request.

upvote downvote
Reply 

D. Smith

D. Smith

Learning new things along with my music

D. Smith
D. Smith, Musician, MA, Nottingham

Answered Jul 29, 2020

Forward and redirect are known to be two methods that are done in web applications. They may seem the same, but they have some differences that you should know. When you say forward, this means that you need to forward a request from one servlet to another resource that you can find on the web.

Forward and redirect are known to be two methods that are done in web applications. They may seem
The resource can be in different forms. When you say that you are going to redirect, this means that you are redirecting the request from one application to a different application. This is not something that you can do when you are using the forward method, so make sure that you will know what to do.

upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.