This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ActionForm subclasses have to implement Serializable?  RSS feed

 
Bob Watson
Greenhorn
Posts: 4
  • 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
  • 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
Boost this thread!