You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Richard Yee <ry...@cruzio.com> on 2004/10/04 06:45:00 UTC

Re: Why Struts use "forward" instead of "redirect" to "jump" from one JSP to another?

Chris,
There are several reasons to use a forward instead of a redirect.

1) Forwards are faster b/c they do not result in another request being 
generated from the browser.
2) Forwards allow information to be passed in the request object rather 
than as strings in the query parameters on a URL or in the Session object.
3) Forwards are more secure since they are internal to the server and 
aren't exposed on the network.
4) Forwards hide identity of the actual page that is being returned to the 
user.

-Richard

At 10:27 AM 10/2/2004, you wrote:
>Hi , all
>
>I am wondering why Struts use "forward" instead of  "redirect"
>to "jump" from one JSP to another.
>
>Could anybody give me some hint?
>
>Regards
>Chris
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org