You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Woodchuck <wo...@yahoo.com> on 2004/08/12 16:23:55 UTC

lifetime of ActionForm objects

the following is my understanding, can someone please verify that i
have it correct?

  - when a form is first submitted, Struts will create an instance of
the ActionForm and then attempt to populate the submitted field data
via the JavaBean convention into the ActionForm object

  - this ActionForm object 'lives' in the session context

  - the next time the same form is submitted, Struts does not create a
new instance, but uses the one it created before

the reason i'm asking is because i have a situation where it seems like
the html form is linked directly to an object that i keep in session...
i don't know how this is happening, but when i submit my form, the
object 'automatically' gets updated with the submitted form data...
however, this object is not even an ActionForm object... it's an object
that i manually copy ActionForm data to, but somehow it seems to have
been 'linked' to the html form and the next time the data fields are
updated before i even copy them there

i hope i explained my situation unconfusingly..

thanks in advance for shedding any light on this
woodchuck


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org