When I remove the reset method, I see the behavior that I am looking
for. This makes it pretty easy to do mulitpage forms. Thanks for your
help.
This has also tripped me up and, from the looks of the mailing list
archives, many other people. It seems like a good fix would be to
have an
Struts calls the reset() method on any bean before populating it from a
request. This is to allow general reuse of beans, and to be sure some
controls like checkboxes are handled properly.
You may need to be sure that the reset() method for your session-bound
ActionForm bean does not blindly
To: [EMAIL PROTECTED]
Subject: Re: Mulitpage form support.
Struts calls the reset() method on any bean before populating it from a
request. This is to allow general reuse of beans, and to be sure some
controls like checkboxes are handled properly.
You may need to be sure that the reset() method for your
Struts doesn't maintain a pool of beans (or any other object).
It just looks for an existing bean in the target scope before creating a
new one of the same class. The ActionForm beans all have the same name
(given in Struts-config), and so if it didn't, the new one would just
overwrite the old
: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 2:10 PM
To: [EMAIL PROTECTED]
Subject: Re: Mulitpage form support.
Struts doesn't maintain a pool of beans (or any other object).
It just looks for an existing bean in the target scope before creating a
new one of the same class
5 matches
Mail list logo