Here is what happens :

reset() is called before every form population
form population occurs before every struts action url (*.do) is processed.

When an action forwards to another one using <forward path="another.do">, struts 
actionServlet is called to handle this
second URL. FormBean is then reseted and populated from request.

If you doesn't use a redirect, request is the same an all parameters are still in it, 
so formbean is populated the same
way for the two actions.

If you use a redirect, when first action forwards, a HTTP Redirect response (with 
location="another.do") is sent to the
browser. Browser follows new location and builds a new request, but this new request 
hasn't any parameter. When form
population occurs for "another.do", form-bean is reseted and population has no effect 
(no parameters !).

Nico.


----- Original Message ----- 
From: "Caroline Lauferon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, November 19, 2003 11:31 AM
Subject: Re: chained actions


> > Is it a multipart form (file upload)?
> yes..... and since you asked me, I just changed it..... and now it works???
> (but the reset method is called between the two action in both cases). I
> don't need this encoding, but I wanted to always use the same skeleton,
> that's why i used it.
> can you explain me what has been happening?
>
>
> Caroline, puzzled
>
>
> ---------------------------------------------------------------------
> 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