• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

ActionForm View ?

Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ActionForm is a bean along with reset() and validate() methods. Bean is a model but it's mentioned in all the books that ActionForm is a View component ?
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
Beauty is in the eye of the tiny ad.
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic