Does the form contain any fields which do not implement Serializable? If so that makes the form unable to be serialized. In order for an object to be serializble both that object and *all* fields it contains *must* implement Serializable. It cascades too, so the fields' fields (if they are not simple types) must implement Serializable - and so forth. Is this your problem, perhaps?

Ryan Cornia wrote:

In my web application, I have all of my forms declared as -

public final class <FORM_NAME> extends
org.apache.struts.validator.ValidatorForm implements Serializable { }

In my tomcat 4.1.12 logs, however, I keep getting errors -

"Cannot serialize session attribute <FORM_NAME>...."

Do I need to write a serialization function for each form? I assumed
this was taken care of in org.apache.struts.validator.ValidatorForm.
Thanks,
Ryan


--
Eddie Bush



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

Reply via email to