Hi,

   when you use redirect , what ever data you have stored in the request will no 
longer be available as you are making a new request.
where as if you use forward the request scope will be continued and all the objects 
you stored in the request will be available..

-Sateesh



-----Original Message-----
From: Johannes Wolfgang Woger [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 5:57 PM
To: Struts Users Mailing List
Subject: Re: what is the difference between forward and redirect?


Hi,
I basically understood the technical diffence between forward and redirect,
but from webapplications point of view, when do I use forward or redirect.

On which circumstances should I use a redirect for example?

Wolfgang

Sanoj, Antony (IE10) wrote:

>Mike,
> 
>  forward is carried inside the servlet engine, whereas the redirect goes to
>the browser, and then the browser sends the request to the resource 
>  forward preserves the request state, but redirect destroys the original
>request as it completes a request/response cycle 
>  when the browser receives the redirect.
>regards
>Sanoj
>
>-----Original Message-----
>From: Mu Mike [mailto:[EMAIL PROTECTED]
>Sent: Thursday, April 15, 2004 3:00 PM
>To: [EMAIL PROTECTED]
>Subject: what is the difference between forward and redirect?
>
>
>when forward, what do we foward? 
>when redirect, what we do different?
>
>Thanks&Regards
>Mike
>
>_________________________________________________________________
>与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to