Apologies, I'm on my way out.  I only wanted to respond to a couple of
items, below:

On 10/12/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> > No, what I'm saying is Struts doesn't distinguish between the two
> > (AFAIK).  However, you seem to.
>
> I do, but Struts don't. You have said before, that reset() is called
> only when form is submitted. So I asked you, how Struts knows that a
> form was submitted?

Via the action mapping.
<action path="/edit" type="PrepareFormAction"/>
<action path="/save" type="SubmitFormAction" name="myForm" input="/edit.jsp"/>

"/edit" doesn't call reset(), "/save" does.

> reset() is always called when request is serviced by an action.

Actually, reset() is called only when the mapping specifies a form. 
Which should mean that the form should be populated with values coming
from request parameters.

Hubert

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

Reply via email to