struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: What should I do with serializable classes?
Date Mon, 12 Dec 2005 20:53:11 GMT

> I have several classes derived either from ValidatorForm or ActionForm.
> Both
> classes mark my derived class as serializable. I get a compiler warning
> about a missing serialVersionUID.

Maybe you are using non-serializable attributes. Check out the
serializable guide in java's docs.

> Why are those classes serializable, because data transfered through a
> network connection? How do I have to handle this warning? Should I just
> define a dummy serialVersionUID?

They are serializable because they must live in a session scope. Tomcat
will put the http sessions in persistent storage.... therefore,... you get
the picture

Hope it helps.

> Sebastian
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message