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

2004-10-03 Thread Richard Yee
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

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

2004-10-02 Thread David G. Friedman
Chris, A struts forward is an internal handoff, unless redirect=true, allowing the next page, JSP, etc. to have full knowledge of anything submitted with the HTTP GET or POST page request. This allows the JSP/page to have full use of the form (which is usually in request scope) and any objects