Thanks for your edification, Mr. Graham ;-) I'd never had call to use that one before.

David Graham wrote:

You can use the transient keyword in a class to mark un-serializable members so that the rest of the class is serializable. For example, if your class had a variable

private Connection conn;

your class would not be serializable because the sql Connection class isn't. So you do this:

private transient Connection conn;

David

--
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