struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adolfo Miguelez" <pell...@hotmail.com>
Subject tricky issue - non serializable DiskFile
Date Fri, 12 Jul 2002 11:35:12 GMT
Hi All,

we are working in a persisted environment as is Websphere 3.5. When we use 
DiskFile it throws the same exception that was reported in this thread:

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg25463.html

a NonSerializedException for the DiskFile object.

It seems to us, that as DiskFile o FormFile belongs to ActionForm, when we 
declared the ActionForm in the properties with default scope, i.e. session, 
when WAS attempts to serialize the DiskFile but it is not able to do it 
since it does not implement Serializable.

On the other hand, when we declare the ActionForm to be in request scope, 
the exception is not raised. This confirms the previous.

Therefore, it looks like, that at least in Struts 1.0.2 ActionForms with 
DikFile attributes can not have session scope. Is this a bug? Could be 
solved by assigning it transient modifier? Will I need to assign session 
scope for ActionForms to upload operations?

Adolfo




_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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


Mime
View raw message