This link has been bookmarked by 4 people . It was first bookmarked on 02 Nov 2007, by Bill H.
The first step to figuring out where to place your validation code is knowing what type of validation you're dealing with. Data-format validation ensures that all data types (integers, floating point numbers, strings, and so on) are correct. It also confirms that variables are within the range of allowed values and that patterns match as they should. Data-format validation essentially deals with any aspect of validation that doesn't require the application of specific business rules.
|
Business-specific validation is based on a set of business rules (for example, ensuring that a supplied ISBN number matches an actual book in your database). It almost always requires access to the EJB layer, as well as other business-logic components in your application.
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.