• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session Management - Serialization

 
Ranch Hand
Posts: 207
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
{

}







Thanks,

 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by thomas davis:
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
{

}







Thanks,



Maybe a missing semi-colon?

-Cameron McKenzie
 
thomas davis
Ranch Hand
Posts: 207
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can you please explain what is that missing semicolon?I just want to understand the serialization concept for session management where FormFile used for uploading the files.Do I need to serialize this file after subclassing it as it is not being serialized by Struts?FormFile is of Struts.

Thanks..
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic