You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dan Allen <da...@mojavelinux.com> on 2003/04/01 04:55:58 UTC

form bean problems in scope

I am having a real issue with the way that form beans are cached.
If you create a form bean called myForm, visit the page, then change
the form bean to MyForm and visit the page again, you will get a
form bean retrieval error until you restart the whole container (not
just the application in the container).  This occurs when using the
DynaAction & friends type of forms.

This is not a good thing.  Changing the name of the form could
potentially lead to many problems under these circumstances.  The
cached version should only be used if the form retains the same
name.  Otherwise, a new form bean should be instantiated.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, <da...@mojavelinux.com>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Chaos reigns within. 
Reflect, repent, and reboot.  Order shall return.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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