>>>>> "Brian" == Brian Holzer <[EMAIL PROTECTED]> writes:

    Brian> Hey there,
    Brian>     I am kind of confused about what the difference is between a forward 
and a redirect.  In reading the documentation on the logic:forward and redirect tags. 
With the forward tag, whether a forward or redirect is sent, is determined by the 
redirect param in the <action> definition. The redirect tag sends a redirect to the 
browser, but what is the difference between the two?  Why would I want to define an 
Actions forward so that it is sent as a redirect?  Maybe the answer will be evident to 
me once I know the difference b/t the two.  Can someone shed some light on this for me?

Other people will hopefully provide more detail, but in short, a "forward"
(without redirect) is like a "function call" on the server side.  It just
transfers control of the servlet output from the current servlet to a different
one.  A "redirect", however, sends a new URL back to the browser, which then
visits that URL.

One common issue that people run into is that you retain the original request
parameters in a forward, but not in a redirect.

Hopefully someone else can provide more information on the motivations for
choosing a forward or redirect.

-- 
===================================================================
David M. Karr          ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


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

Reply via email to