-Original Message-
From: David Winterfeldt [mailto:[EMAIL PROTECTED]]
Sent: maandag 22 oktober 2001 19:51
To: [EMAIL PROTECTED]
Subject: Re: Form properties reset ?
--- Ted Husted [EMAIL PROTECTED] wrote:
You can also be more careful about which properties
are reset when
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: maandag 22 oktober 2001 19:03
To: [EMAIL PROTECTED]
Subject: Re: Form properties reset ?
Yes, I would expect this. Any properties you set in the form
bean from the
first action will be cleared
If you specify an ActionForm in the mapping for an Action, the contract
is that the ActionServlet will autopopulate the form (see
BeanUtils.populate()). Since there can only be one ActionForm under a
given name in a given request, to fulfill its contract, the
ActionServlet will use whatever form
Yes, I would expect this. Any properties you set in the form bean from the
first action will be cleared when the form bean is reset prior to
populating it for the second action.
If you need to add additional parameters to the request, you'll need to do
it by adding them to the URL used to
You can also be more careful about which properties are reset when. Both
the mapping and the request are passed to reset, giving you the
opportunity to look ahead.
The default reset does nothing. The properties are only affected if
you've overridden this class and specified what happens to the
--- Ted Husted [EMAIL PROTECTED] wrote:
You can also be more careful about which properties
are reset when. Both
the mapping and the request are passed to reset,
giving you the
opportunity to look ahead.
The default reset does nothing. The properties are
only affected if
you've
6 matches
Mail list logo