A JavaBean class is nothing more than a
Java class that follows certain conventions (such as it needs to have a no-argument constructor, properties must be prefixed with
get and
set, etc). JavaBean classes can act as reusable components in all kinds of situations. For example, in the case of a
Struts ActionForm, because the ActionForm is a JavaBean, the inputs in the HTML form can be easily mapped to the properties in the ActionForm.
So while a MVC/Struts model is often a bean, a bean is not necessarily a MVC/Struts model.
[ May 15, 2007: Message edited by: Jaap v Hengstum ]