File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes SERIALIZATION IN STRUTS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "SERIALIZATION IN STRUTS" Watch "SERIALIZATION IN STRUTS" New topic
Author

SERIALIZATION IN STRUTS

thomas davis
Ranch Hand

Joined: Feb 01, 2003
Posts: 207
I have one value object class wherein I am using FormFile of Struts for uploading the file.We are using RBActionForm for session management.

1) Do we need to serialize the file FormFile as it is imported from struts?Do we need to subclass it and implement serilizable?

2) Do we need to serialize RBActionForm as its parent class ActionForm is serialized by Struts?

public class RBActionForm extends ActionForm
{
...
....
......
}
public class ProjCostForm extends RBActionForm ;
{

.....
.....
.......
/ /Attrbutes for file uploading
private FormFile file;
int fileSeqNo;

}

abstract public interfaceorg.apache.struts.upload.FormFile extends java.lang.Object
{

}




 
jQuery in Action, 2nd edition
 
subject: SERIALIZATION IN STRUTS