struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Yee <r...@cruzio.com>
Subject Re: Why Struts use "forward" instead of "redirect" to "jump" from one JSP to another?
Date Mon, 04 Oct 2004 04:45:00 GMT
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


Mime
View raw message