Just wondering if you could help me out in differentiating between ActionForm and ActionFormBean classes and where they are called in a framework. If Possible please help me with some links or examples for the same.
I am very new to struts myself, but I believe they are the same thing. ActionForm is actually a bean, and since the work 'action' is used so much in struts, it is easy for us newbies to get confused, so some people call it ActionFormBean just to reinforce the fact that it is a bean.
posted 16 years ago
Boss ! I think Its not the right Track because ActionForm and ActionFormBean are truly 2 different Classes.
If you ever hear someone say "ActionFormBean" you can assume that they mean "ActionForm".
There IS an ActionFormBean class but it is being replaced by FormBeanConfig. All it does is hold the configuration information of the ActionForms defined in struts-config. It's something behind the scenes of the framework and you probably won't ever have to worry about it.
Just to add more info - ActionForm is a class that your bean should extend to get the ActionFormBeanness in it. So your bean gets some special properties - when the form submits the bean is automatically populated with the matching form fields.
Repeat after me.
There is no spoon. There is no ActionFormBean class.