• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Bus iness validation - where and why?

 
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe that we prefer to validate all business scenarios in teh action class;rather than the ActionForm - simply because ActionForm are meant to be contain application state that are driven by the business conditions.
So,validating business in the form is risky as the same form may be used in different scenarios needing different state and validations.

But is there any other technical reason(vis-a-via a design decision) on why the action class should be preferred over the actionForm for handling business scenarios?
 
reply
    Bookmark Topic Watch Topic
  • New Topic