struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Allen <...@mojavelinux.com>
Subject form bean problems in scope
Date Tue, 01 Apr 2003 02:55:58 GMT
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, <dan@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


Mime
View raw message