File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ActionForm subclasses have to implement Serializable?

 
Bob Watson
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,
In Jakarta struts API ActionForm, there is a sentence -- "Because ActionForms are JavaBeans, subclasses should also implement Serializable, as required by the JavaBean specification."
If I create my own super Form like this:
public abstract class MyGeneralActionForm extends ActionForm { ... }
it will still work. My question is -- do we have to implement Serializable?
Thanks a lot!
 
Rick Hightower
Author
Ranch Hand
Posts: 350
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ActionForm API docs
Get the API docs. Get the source. Documents sometimes lie. Source code and API docs do not.

In short, no you don't have to implement java.io.Serializable because it is done by the super class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic