Craig: I am using struts and am pretty impressed with the way you good ppl have comeup with such a generic and helpful framework. I will like to contribute in the development efforts, can any one tell me how can I contribute in this great work.
Regards Chetan ----- Original Message ----- From: "Craig R. McClanahan" <[EMAIL PROTECTED]> To: "Struts Developers List" <[EMAIL PROTECTED]> Sent: Tuesday, March 25, 2003 10:49 AM Subject: Re: forms tag ? serialaizable > > > On Mon, 24 Mar 2003, Vic Cekvenich wrote: > > > Date: Mon, 24 Mar 2003 18:55:00 -0500 > > From: Vic Cekvenich <[EMAIL PROTECTED]> > > Reply-To: Struts Developers List <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED] > > Subject: Re: forms tag ? serialaizable > > > > <SNIP> > > > > > > If your UserBean class declares "implements Serializable", this means that > > > UserBean also takes responsibility for saving and restoring the instance > > > variables of the base class as well. If it doesn't, then your UserBean > > > class is broken. The only thing the container should need to do is an > > > "instanceof Serializable" test. > > > > > > > > > public class UserBean extends ValidatorForm > > implements Serializable, Collection { // class } > > > > My concreate does. But the container I think sees is as > > ValidatorForm.... which it tags as not Serializable and throws an > > exception. I could test by making ActionForm implement Seriazable, see > > if that "fixes" it. > > > > What the container should do (and Tomcat in particular does) is an > "instanceof Serializable" check, which will return true if the base class > says "implements Serializable" (which is already true for ActionForm, and > therefore DynaActionForm) or whether the concrete class itself does (as in > your example above). > > If you still have a serialization problem with a UserBean declared as you > indicate above, it's likely that one of the instance variables inside > UserBean (or its superclass) cannot actually be serialized. For example, > if you've got an instance variable of type java.sql.Connection, you'd > definitely run into problems. > > > > > tia, > > > > .V > > Craig > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]