Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SERIALIZATION IN STRUTS

 
thomas davis
Ranch Hand
Posts: 207
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
{

}




 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic